Changeset - r2864:d83d07226383
[Not reviewed]
master
0 1 0
peter1138 - 19 years ago 2006-01-21 19:39:26
peter1138@openttd.org
(svn r3412) - Fix: When changing game mode, reset the tile highlight data, as it may now be out of bounds. This fixes (at least) an assertion when opening the station builder window.
1 file changed with 4 insertions and 0 deletions:
0 comments (0 inline, 0 general)
openttd.c
Show inline comments
 
@@ -814,6 +814,10 @@ void SwitchMode(int new_mode)
 

	
 
	if (_switch_mode_errorstr != INVALID_STRING_ID)
 
		ShowErrorMessage(INVALID_STRING_ID,_switch_mode_errorstr,0,0);
 

	
 
	// Reset the TileHighlightData as it may be out of bounds if
 
	// the new map is smaller than the old map.
 
	memset(&_thd, 0, sizeof(_thd));
 
}
 

	
 

	
0 comments (0 inline, 0 general)