(svn r11014) -Fix (r11011) [FS#1170]: crash when selling the first train of a consist.
authorrubidium
Fri, 31 Aug 2007 12:57:52 +0000
changeset 7995 6c22a5f9e281
parent 7994 d5e8a6a01c4d
child 7996 376de5dc956f
(svn r11014) -Fix (r11011) [FS#1170]: crash when selling the first train of a consist.
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;