1
0
forked from 0ad/0ad

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:
wraitii 2021-06-16 15:54:55 +00:00
parent d8f0bde05e
commit 17c54d5a69

View File

@ -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;
}