(svn r18035) -Fix (r16909): one could remotely crash (assert) the server on certain commands

This commit is contained in:
rubidium 2009-11-10 11:19:07 +00:00
parent 7247011636
commit 15ede6b763
1 changed files with 3 additions and 0 deletions

View File

@ -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();