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
commita2a1e0a114635ff688529e0a261aa074ef43fcb3 (patch)
treea40a1d3313986d8e6882b5192d71ffe6212bcda9 /window.c
parentfa541b86560bd7b385c12c9807dbe0bae29bb420 (diff)
downloadopenttd-a2a1e0a114635ff688529e0a261aa074ef43fcb3.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)