Fix options occasionally thinking they've been modified when they haven't.
std::array leave the values in an undefined state which can very well be 'true'. Tested By: Freagarach Fixes #6205 Differential Revision: https://code.wildfiregames.com/D4170 This was SVN commit r25802.
This commit is contained in:
parent
d8f0bde05e
commit
17c54d5a69
@ -143,6 +143,7 @@ CConfigDB* CConfigDB::Instance()
|
||||
|
||||
CConfigDB::CConfigDB()
|
||||
{
|
||||
m_HasChanges.fill(false);
|
||||
}
|
||||
|
||||
CConfigDB::~CConfigDB()
|
||||
@ -443,6 +444,7 @@ bool CConfigDB::Reload(EConfigNamespace ns)
|
||||
LOGERROR("Config file does not have a new line after the last config setting '%s'", name);
|
||||
|
||||
m_Map[ns].swap(newMap);
|
||||
m_HasChanges[ns] = false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user