summaryrefslogtreecommitdiff
path: root/src/vehicle.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-08-31 12:57:52 +0000
committerrubidium <rubidium@openttd.org>2007-08-31 12:57:52 +0000
commit3b672a5c5ff22ec95419fae6ce33dbe5ce423f96 (patch)
treef776ae54e8de02101874d67852f890dc8c7c5d45 /src/vehicle.cpp
parenta0831a35a2f31e2447691c0cfd20e52adecee149 (diff)
downloadopenttd-3b672a5c5ff22ec95419fae6ce33dbe5ce423f96.tar.xz
(svn r11014) -Fix (r11011) [FS#1170]: crash when selling the first train of a consist.
Diffstat (limited to 'src/vehicle.cpp')
-rw-r--r--src/vehicle.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vehicle.cpp b/src/vehicle.cpp
index 24e80ff67..2e37d1c15 100644
--- a/src/vehicle.cpp
+++ b/src/vehicle.cpp
@@ -547,6 +547,7 @@ Vehicle::~Vehicle()
if (CleaningPool()) return;
+ this->SetNext(NULL);
UpdateVehiclePosHash(this, INVALID_COORD, 0);
this->next_hash = NULL;
this->next_new_hash = NULL;