# HG changeset patch # User rubidium # Date 1188565072 0 # Node ID 6c22a5f9e2813c5f4ecaa357867dd3c95ad11823 # Parent d5e8a6a01c4dfc9e048c00880683ebe099ec535e (svn r11014) -Fix (r11011) [FS#1170]: crash when selling the first train of a consist. diff -r d5e8a6a01c4d -r 6c22a5f9e281 src/vehicle.cpp --- a/src/vehicle.cpp Fri Aug 31 12:45:21 2007 +0000 +++ b/src/vehicle.cpp Fri Aug 31 12:57:52 2007 +0000 @@ -547,6 +547,7 @@ if (CleaningPool()) return; + this->SetNext(NULL); UpdateVehiclePosHash(this, INVALID_COORD, 0); this->next_hash = NULL; this->next_new_hash = NULL;