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 | 4ad4f1f3f15a49954ced9ac2e53e8840811dadf8 (patch) | |
tree | 37ea5878b75e7b5f0193b94c6d3c2aa3e1e9b498 /src/station.h | |
parent | 34272ad2011ea4e4ba690170338f3a138eae7281 (diff) | |
download | openttd-4ad4f1f3f15a49954ced9ac2e53e8840811dadf8.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); } |