summaryrefslogtreecommitdiff
path: root/src/openttd.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2011-07-03 10:59:25 +0000
committerfrosch <frosch@openttd.org>2011-07-03 10:59:25 +0000
commitd29def43b072864fd80495b1ff786476e094c771 (patch)
treec1305508216d5791caa3a04190c69a784dec8c8a /src/openttd.cpp
parent9c015d369e01f027ccefea080b6ea7004e20afae (diff)
downloadopenttd-d29def43b072864fd80495b1ff786476e094c771.tar.xz
(svn r22626) -Fix [FS#4622]: Also initialise _old_vds with newgame settings; TTD savegames do not contain these settings.
Diffstat (limited to 'src/openttd.cpp')
-rw-r--r--src/openttd.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/openttd.cpp b/src/openttd.cpp
index 198e648fa..6cf40ffba 100644
--- a/src/openttd.cpp
+++ b/src/openttd.cpp
@@ -314,7 +314,10 @@ void MakeNewgameSettingsLive()
}
#endif /* ENABLE_AI */
+ /* Copy newgame settings to active settings.
+ * Also initialise old settings needed for savegame conversion. */
_settings_game = _settings_newgame;
+ _old_vds = _settings_client.company.vehicle;
#ifdef ENABLE_AI
for (CompanyID c = COMPANY_FIRST; c < MAX_COMPANIES; c++) {