(svn r9524) -Fix(FS#640,r8755): Implemented a "dummy" State Machine for stations who got their airport removed while there were still aircraft within the State Machine (and thus caused asserts)

This commit is contained in:
celestar
2007-03-29 13:52:34 +00:00
parent 386e298acd
commit a1ab0d29fe
6 changed files with 100 additions and 52 deletions

View File

@@ -118,7 +118,7 @@ struct Station {
const AirportFTAClass *Airport() const
{
assert(airport_tile != 0);
if (airport_tile == 0) return GetAirport(AT_DUMMY);
return GetAirport(airport_type);
}