diff options
author | Darkvater <darkvater@openttd.org> | 2005-05-01 19:37:20 +0000 |
---|---|---|
committer | Darkvater <darkvater@openttd.org> | 2005-05-01 19:37:20 +0000 |
commit | 639b6e780f77926d14ab2862d54c9adbcf8213d9 (patch) | |
tree | a40a1d3313986d8e6882b5192d71ffe6212bcda9 | |
parent | cf5370eb22dbc11b63fa3a3c51fc2a572c0afb20 (diff) | |
download | openttd-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.
-rw-r--r-- | window.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -716,6 +716,7 @@ void ResetWindowSystem(void) { UnInitWindowSystem(); InitWindowSystem(); + memset(&_thd, 0, sizeof(TileHighlightData)); } static void DecreaseWindowCounters(void) |