summaryrefslogtreecommitdiff
path: root/src/openttd.cpp
diff options
context:
space:
mode:
authorglx <glx@openttd.org>2007-12-04 22:22:50 +0000
committerglx <glx@openttd.org>2007-12-04 22:22:50 +0000
commit46441ac31c2e305dc1b82a4a5ff3df74ffb735e5 (patch)
tree907c947338b042cfbfdb391b334b82b3544021d4 /src/openttd.cpp
parent02c46026b399dd453857fb42a38139bc95b200f9 (diff)
downloadopenttd-46441ac31c2e305dc1b82a4a5ff3df74ffb735e5.tar.xz
(svn r11572) -Fix [FS#1494]: reinitialise windows system before loading a savegame
Diffstat (limited to 'src/openttd.cpp')
-rw-r--r--src/openttd.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/openttd.cpp b/src/openttd.cpp
index ffcaeb127..1e7d03ee6 100644
--- a/src/openttd.cpp
+++ b/src/openttd.cpp
@@ -902,6 +902,7 @@ void SwitchMode(int new_mode)
case SM_LOAD: { /* Load game, Play Scenario */
_opt_ptr = &_opt;
ResetGRFConfig(true);
+ ResetWindowSystem();
if (!SafeSaveOrLoad(_file_to_saveload.name, _file_to_saveload.mode, GM_NORMAL, NO_DIRECTORY)) {
LoadIntroGame();