summaryrefslogtreecommitdiff
path: root/src/game
diff options
context:
space:
mode:
authortruebrain <truebrain@openttd.org>2012-01-03 23:09:48 +0000
committertruebrain <truebrain@openttd.org>2012-01-03 23:09:48 +0000
commit251687f795d0fe767ac52c6a9e5bfaa648919da2 (patch)
tree9d4549bd9454f391586cd541dae8c986d1355ce0 /src/game
parent00ec5da36161b2070fcf382a41f9d6b72ab6290f (diff)
downloadopenttd-251687f795d0fe767ac52c6a9e5bfaa648919da2.tar.xz
(svn r23746) -Fix: also set 'info' to NULL if 'instance' dies (for both AI and GS); avoids invalid memory reads
Diffstat (limited to 'src/game')
-rw-r--r--src/game/game_core.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/game/game_core.cpp b/src/game/game_core.cpp
index 566618040..00930cacc 100644
--- a/src/game/game_core.cpp
+++ b/src/game/game_core.cpp
@@ -94,6 +94,7 @@
delete Game::instance;
Game::instance = NULL;
+ Game::info = NULL;
cur_company.Restore();