diff options
author | yexo <yexo@openttd.org> | 2010-01-29 18:21:10 +0000 |
---|---|---|
committer | yexo <yexo@openttd.org> | 2010-01-29 18:21:10 +0000 |
commit | f381b91de02e3a9a8df5ea83305a1cce52edab68 (patch) | |
tree | c09e5150e96ef170dde8bd638042b07f643fc7ac /src | |
parent | f8b0ddd3eca33be188b90b62c13cecd2c0c18783 (diff) | |
download | openttd-f381b91de02e3a9a8df5ea83305a1cce52edab68.tar.xz |
(svn r18950) -Fix: make sure the values of settings loaded from a savegame are valid
Diffstat (limited to 'src')
-rw-r--r-- | src/settings.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/settings.cpp b/src/settings.cpp index ccc3c5c85..3150ebc17 100644 --- a/src/settings.cpp +++ b/src/settings.cpp @@ -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)); } } |