summaryrefslogtreecommitdiff
path: root/oldloader.c
diff options
context:
space:
mode:
authorcelestar <celestar@openttd.org>2006-04-18 08:50:17 +0000
committercelestar <celestar@openttd.org>2006-04-18 08:50:17 +0000
commit277f8cbda27bad0b199ae5ec38012d160b5eb8e5 (patch)
tree30ec24c2a1d82c9e46e78489ed951320b67741d9 /oldloader.c
parent6c5e9fe311d070e52eb6dcc130ede4530690fdf8 (diff)
downloadopenttd-277f8cbda27bad0b199ae5ec38012d160b5eb8e5.tar.xz
(svn r4466) -Fix: (FS#71) Game no longer crashes when the last vehicle serving a station has been deleted.
-Negative side effect: upon loading old games, stations whose last vehicle was a station have (temporarily) lower ratings. -Positive side effect: station.h no longer includes vehicle.h (breaks the station.h->vehicle.h->rail.h chain)
Diffstat (limited to 'oldloader.c')
-rw-r--r--oldloader.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/oldloader.c b/oldloader.c
index 31f2ab293..be129c2c7 100644
--- a/oldloader.c
+++ b/oldloader.c
@@ -682,7 +682,7 @@ static const OldChunks station_chunk[] = {
OCL_SVAR( OC_UINT8, Station, blocked_months_obsolete ),
OCL_NULL( 1 ), // Unknown
OCL_SVAR( OC_FILE_U16 | OC_VAR_U32, Station, airport_flags ),
- OCL_SVAR( OC_UINT16, Station, last_vehicle ),
+ OCL_NULL( 2 ), // last_vehicle. now last_vehicle_type
OCL_NULL( 4 ), // Junk at end of chunk