diff --git a/src/GLideNUI-wtl/ConfigDlg.cpp b/src/GLideNUI-wtl/ConfigDlg.cpp index 3df4088c..c411e114 100644 --- a/src/GLideNUI-wtl/ConfigDlg.cpp +++ b/src/GLideNUI-wtl/ConfigDlg.cpp @@ -220,8 +220,8 @@ void CConfigDlg::SaveSettings() { for (size_t i = 0; i < m_TabWindows.size(); i++) m_TabWindows[i]->SaveSettings(); - if (config.generalEmulation.enableCustomSettings && CButton(m_EmulationTab->GetDlgItem(IDC_GAME_PROFILE)).GetCheck() == BST_CHECKED && m_romName != nullptr) - saveCustomRomSettings(m_strIniPath.c_str(), m_romName); + if (config.generalEmulation.enableCustomSettings && CButton(GetDlgItem(IDC_GAME_PROFILE)).GetCheck() == BST_CHECKED && m_romName != nullptr) + saveCustomRomSettings(m_strIniPath.c_str(), m_romName); else writeSettings(m_strIniPath.c_str());