diff options
author | rubidium <rubidium@openttd.org> | 2007-08-31 12:57:52 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-08-31 12:57:52 +0000 |
commit | 98a3b8abfac38a60d8c96187188213ef571c3b4e (patch) | |
tree | f776ae54e8de02101874d67852f890dc8c7c5d45 | |
parent | c19b8c72b7514751fd3470908fbd047e1a63862b (diff) | |
download | openttd-98a3b8abfac38a60d8c96187188213ef571c3b4e.tar.xz |
(svn r11014) -Fix (r11011) [FS#1170]: crash when selling the first train of a consist.
-rw-r--r-- | src/vehicle.cpp | 1 |
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; |