summaryrefslogtreecommitdiff
path: root/src/vehicle.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2013-06-04 15:04:59 +0000
committerrubidium <rubidium@openttd.org>2013-06-04 15:04:59 +0000
commit254c3834d0ef508e167f1d3b3c000b1db04b578a (patch)
tree55f7a0f060d3d362b98d96e1c09cb0da23f84673 /src/vehicle.cpp
parent0d28dc92fc71c55fe0249937af5e98ebfadb2151 (diff)
downloadopenttd-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.cpp2
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;
}
/**