From 3b672a5c5ff22ec95419fae6ce33dbe5ce423f96 Mon Sep 17 00:00:00 2001 From: rubidium Date: Fri, 31 Aug 2007 12:57:52 +0000 Subject: (svn r11014) -Fix (r11011) [FS#1170]: crash when selling the first train of a consist. --- src/vehicle.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/vehicle.cpp') 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; -- cgit v1.2.3-70-g09d2