(svn r18950) -Fix: make sure the values of settings loaded from a savegame are valid
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user