Changeset - r13506:8ac8d745b276
[Not reviewed]
master
0 1 0
rubidium - 15 years ago 2009-11-10 11:19:07
rubidium@openttd.org
(svn r18035) -Fix (r16909): one could remotely crash (assert) the server on certain commands
1 file changed with 3 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/station_cmd.cpp
Show inline comments
 
@@ -56,6 +56,9 @@ bool IsHangar(TileIndex t)
 
{
 
	assert(IsTileType(t, MP_STATION));
 

	
 
	/* If the tile isn't an airport there's no chance it's a hangar. */
 
	if (!IsAirport(t)) return false;
 

	
 
	const Station *st = Station::GetByTile(t);
 
	const AirportFTAClass *apc = st->Airport();
 

	
0 comments (0 inline, 0 general)