Project64: CSettingTypeApplication::Save: do not compare default if passing NULL
This commit is contained in:
parent
5d59156ee4
commit
1be3f869d6
|
@ -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)))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue