(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.
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user