diff options
author | rubidium <rubidium@openttd.org> | 2013-06-04 15:04:59 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2013-06-04 15:04:59 +0000 |
commit | 254c3834d0ef508e167f1d3b3c000b1db04b578a (patch) | |
tree | 55f7a0f060d3d362b98d96e1c09cb0da23f84673 /src/vehicle.cpp | |
parent | 0d28dc92fc71c55fe0249937af5e98ebfadb2151 (diff) | |
download | openttd-254c3834d0ef508e167f1d3b3c000b1db04b578a.tar.xz |
(svn r25319) -Fix [FS#5570]: crash when train with reserved cargo vanishes
Diffstat (limited to 'src/vehicle.cpp')
-rw-r--r-- | src/vehicle.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vehicle.cpp b/src/vehicle.cpp index 1a50a0241..49e8eed01 100644 --- a/src/vehicle.cpp +++ b/src/vehicle.cpp @@ -270,6 +270,8 @@ Vehicle::Vehicle(VehicleType type) this->first = this; this->colourmap = PAL_NONE; this->cargo_age_counter = 1; + this->last_station_visited = INVALID_STATION; + this->last_loading_station = INVALID_STATION; } /** |