summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2010-01-29 18:21:10 +0000
committeryexo <yexo@openttd.org>2010-01-29 18:21:10 +0000
commitf381b91de02e3a9a8df5ea83305a1cce52edab68 (patch)
treec09e5150e96ef170dde8bd638042b07f643fc7ac /src
parentf8b0ddd3eca33be188b90b62c13cecd2c0c18783 (diff)
downloadopenttd-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.cpp1
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));
}
}