diff options
author | celestar <celestar@openttd.org> | 2006-04-18 08:50:17 +0000 |
---|---|---|
committer | celestar <celestar@openttd.org> | 2006-04-18 08:50:17 +0000 |
commit | e75e4e8f74614e360414c7ec43899b8c461c911f (patch) | |
tree | 30ec24c2a1d82c9e46e78489ed951320b67741d9 /station.h | |
parent | 62f7907d3a5210160a1a3bf134e95213382c9c90 (diff) | |
download | openttd-e75e4e8f74614e360414c7ec43899b8c461c911f.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 'station.h')
-rw-r--r-- | station.h | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -7,7 +7,6 @@ #include "pool.h" #include "sprite.h" #include "tile.h" -#include "vehicle.h" #include "newgrf_station.h" typedef struct GoodsEntry { @@ -72,7 +71,7 @@ struct Station { uint32 airport_flags; StationID index; - VehicleID last_vehicle; + byte last_vehicle_type; GoodsEntry goods[NUM_CARGO]; /* Stuff that is no longer used, but needed for conversion */ |