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
commit98a3b8abfac38a60d8c96187188213ef571c3b4e (patch)
treef776ae54e8de02101874d67852f890dc8c7c5d45 /src/vehicle.cpp
parentc19b8c72b7514751fd3470908fbd047e1a63862b (diff)
downloadopenttd-98a3b8abfac38a60d8c96187188213ef571c3b4e.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;