equal
deleted
inserted
replaced
389 /** De-Initializes a RoadStops. This includes clearing all slots that vehicles might |
389 /** De-Initializes a RoadStops. This includes clearing all slots that vehicles might |
390 * have and unlinks it from the linked list of road stops at the given station |
390 * have and unlinks it from the linked list of road stops at the given station |
391 */ |
391 */ |
392 RoadStop::~RoadStop() |
392 RoadStop::~RoadStop() |
393 { |
393 { |
|
394 if (CleaningPool()) return; |
|
395 |
394 /* Clear the slot assignment of all vehicles heading for this road stop */ |
396 /* Clear the slot assignment of all vehicles heading for this road stop */ |
395 if (num_vehicles != 0) { |
397 if (num_vehicles != 0) { |
396 Vehicle *v; |
398 Vehicle *v; |
397 |
399 |
398 FOR_ALL_VEHICLES(v) { |
400 FOR_ALL_VEHICLES(v) { |