Project64: CSettingTypeApplication::Save: do not compare default if passing NULL

This commit is contained in:
zilmar 2020-07-15 20:01:55 +09:30
parent 5d59156ee4
commit 1be3f869d6
1 changed files with 1 additions and 1 deletions

View File

@ -268,7 +268,7 @@ void CSettingTypeApplication::Save(uint32_t Index, const std::string & Value)
void CSettingTypeApplication::Save(uint32_t /*Index*/, const char * Value)
{
if (m_DefaultSetting != Default_None &&
if (m_DefaultSetting != Default_None && Value != NULL &&
((m_DefaultSetting == Default_Constant && strcmp(m_DefaultStr,Value) == 0) ||
(m_DefaultSetting != Default_Constant && strcmp(g_Settings->LoadStringVal(m_DefaultSetting).c_str(),Value) == 0)))
{