(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.

pull/155/head
Darkvater 20 years ago
parent fa541b8656
commit a2a1e0a114

@ -716,6 +716,7 @@ void ResetWindowSystem(void)
{ {
UnInitWindowSystem(); UnInitWindowSystem();
InitWindowSystem(); InitWindowSystem();
memset(&_thd, 0, sizeof(TileHighlightData));
} }
static void DecreaseWindowCounters(void) static void DecreaseWindowCounters(void)

Loading…
Cancel
Save