From 98a3b8abfac38a60d8c96187188213ef571c3b4e Mon Sep 17 00:00:00 2001 From: rubidium Date: Fri, 31 Aug 2007 12:57:52 +0000 Subject: [PATCH] (svn r11014) -Fix (r11011) [FS#1170]: crash when selling the first train of a consist. --- src/vehicle.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/vehicle.cpp b/src/vehicle.cpp index 24e80ff670..2e37d1c155 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;