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 | 3b672a5c5ff22ec95419fae6ce33dbe5ce423f96 (patch) | |
tree | f776ae54e8de02101874d67852f890dc8c7c5d45 | |
parent | a0831a35a2f31e2447691c0cfd20e52adecee149 (diff) | |
download | openttd-3b672a5c5ff22ec95419fae6ce33dbe5ce423f96.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; |