From 5f816d2a3db724c19ff7c1e1bf90113264681755 Mon Sep 17 00:00:00 2001 From: zilmar Date: Thu, 7 May 2020 10:58:03 +0930 Subject: [PATCH] GLideNUI-wtl: fix read game prilfe setting in init --- src/GLideNUI-wtl/ConfigDlg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/GLideNUI-wtl/ConfigDlg.cpp b/src/GLideNUI-wtl/ConfigDlg.cpp index 2889704d3..5d0323d67 100644 --- a/src/GLideNUI-wtl/ConfigDlg.cpp +++ b/src/GLideNUI-wtl/ConfigDlg.cpp @@ -326,7 +326,7 @@ void CConfigDlg::Init(bool reInit, bool blockCustomSettings) { m_blockReInit = true; bool CustomSettings = m_EmulationTab != NULL && CButton(m_EmulationTab->GetDlgItem(IDC_CHK_USE_PER_GAME)).GetCheck() == BST_CHECKED; - if (reInit && m_romName != NULL && CustomSettings && CButton(m_EmulationTab->GetDlgItem(IDC_GAME_PROFILE)).GetCheck() == BST_CHECKED) { + if (reInit && m_romName != NULL && CustomSettings && CButton(GetDlgItem(IDC_GAME_PROFILE)).GetCheck() == BST_CHECKED) { loadCustomRomSettings(m_strIniPath.c_str(), m_romName); } else if (reInit) { loadSettings(m_strIniPath.c_str());