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

pull/155/head
rubidium 15 years ago
parent 1baee19432
commit 266511971c

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

Loading…
Cancel
Save