summaryrefslogtreecommitdiff
path: root/window.c
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2005-05-01 19:37:20 +0000
committerDarkvater <darkvater@openttd.org>2005-05-01 19:37:20 +0000
commit639b6e780f77926d14ab2862d54c9adbcf8213d9 (patch)
treea40a1d3313986d8e6882b5192d71ffe6212bcda9 /window.c
parentcf5370eb22dbc11b63fa3a3c51fc2a572c0afb20 (diff)
downloadopenttd-639b6e780f77926d14ab2862d54c9adbcf8213d9.tar.xz
(svn r2241) - Fix: [ 1190625 ] Changing mapsize crashes game with highlighting. Without shutting down OpenTTD some possibly 'invalid' data in TileHighLightData (_thd) is left behind; reset it.
Diffstat (limited to 'window.c')
-rw-r--r--window.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/window.c b/window.c
index c5bc834ba..1b4b3773c 100644
--- a/window.c
+++ b/window.c
@@ -716,6 +716,7 @@ void ResetWindowSystem(void)
{
UnInitWindowSystem();
InitWindowSystem();
+ memset(&_thd, 0, sizeof(TileHighlightData));
}
static void DecreaseWindowCounters(void)