(svn r18950) -Fix: make sure the values of settings loaded from a savegame are valid

This commit is contained in:
yexo
2010-01-29 18:21:10 +00:00
parent f8b0ddd3ec
commit f381b91de0
2 changed files with 10 additions and 9 deletions

View File

@@ -1784,6 +1784,7 @@ static void LoadSettings(const SettingDesc *osd, void *object)
void *ptr = GetVariableAddress(object, sld);
if (!SlObjectMember(ptr, sld)) continue;
Write_ValidateSetting(ptr, osd, ReadValue(ptr, sld->conv));
}
}