From a2a1e0a114635ff688529e0a261aa074ef43fcb3 Mon Sep 17 00:00:00 2001 From: Darkvater Date: Sun, 1 May 2005 19:37:20 +0000 Subject: [PATCH] (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. --- window.c | 1 + 1 file changed, 1 insertion(+) diff --git a/window.c b/window.c index c5bc834bab..1b4b3773c2 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)