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

This commit is contained in:
Darkvater 2005-05-01 19:37:20 +00:00
parent cf5370eb22
commit 639b6e780f
1 changed files with 1 additions and 0 deletions

View File

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