summaryrefslogtreecommitdiff
path: root/window.c
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2006-01-24 18:08:04 +0000
committerDarkvater <darkvater@openttd.org>2006-01-24 18:08:04 +0000
commita4807caf6a371798478059e368200b51c5c86ebf (patch)
tree48144831ab4dc3a925e2ea35cc5b2ed7ed932829 /window.c
parentec7d2fbb39ad750ab76d36d089b79fc8408e17b2 (diff)
downloadopenttd-a4807caf6a371798478059e368200b51c5c86ebf.tar.xz
(svn r3425) - Fix: Followup to r3421. Correctly reset the TileHighLightData structure to prevent crashes in all the other cases where it is not guarded against sufficiently
Diffstat (limited to 'window.c')
-rw-r--r--window.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/window.c b/window.c
index 1923288ae..a1f6b4973 100644
--- a/window.c
+++ b/window.c
@@ -699,6 +699,8 @@ void ResetWindowSystem(void)
InitWindowSystem();
_thd.pos.x = 0;
_thd.pos.y = 0;
+ _thd.new_pos.x = 0;
+ _thd.new_pos.y = 0;
}
static void DecreaseWindowCounters(void)