diff options
author | celestar <celestar@openttd.org> | 2007-03-29 13:52:34 +0000 |
---|---|---|
committer | celestar <celestar@openttd.org> | 2007-03-29 13:52:34 +0000 |
commit | a1ab0d29fe5d5f0e5b90cc0908837f6b301d32f7 (patch) | |
tree | 37ea5878b75e7b5f0193b94c6d3c2aa3e1e9b498 /src/station.h | |
parent | 386e298acd7855feb54d7b75ce0e3144db487649 (diff) | |
download | openttd-a1ab0d29fe5d5f0e5b90cc0908837f6b301d32f7.tar.xz |
(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)
Diffstat (limited to 'src/station.h')
-rw-r--r-- | src/station.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/station.h b/src/station.h index 3a4ef31cf..6bd6820d1 100644 --- a/src/station.h +++ b/src/station.h @@ -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); } |