diff options
author | rubidium <rubidium@openttd.org> | 2007-08-06 14:08:25 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-08-06 14:08:25 +0000 |
commit | 341281a7d4fad9d37e2f4c0f68d49cd1b1c7e148 (patch) | |
tree | 5ba1d39c7df66d494e77d76e11f6f85110614d1f /src/station.cpp | |
parent | 83a04adb71f5802d03a0b815320e1328306862ca (diff) | |
download | openttd-341281a7d4fad9d37e2f4c0f68d49cd1b1c7e148.tar.xz |
(svn r10813) -Fix (r10799): some destructors were performing too much during the pool cleanups, which could cause crashes as already removed pool items could then be dereferenced by other destructors.
Diffstat (limited to 'src/station.cpp')
-rw-r--r-- | src/station.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/station.cpp b/src/station.cpp index 150719e8f..fab0395b7 100644 --- a/src/station.cpp +++ b/src/station.cpp @@ -391,6 +391,8 @@ RoadStop::RoadStop(TileIndex tile) : */ RoadStop::~RoadStop() { + if (CleaningPool()) return; + /* Clear the slot assignment of all vehicles heading for this road stop */ if (num_vehicles != 0) { Vehicle *v; |