src/station.cpp
changeset 7420 0e3afa8102f0
parent 7413 a590f7f0edb3
child 7453 f0e43db55531
equal deleted inserted replaced
7419:531c4851ba85 7420:0e3afa8102f0
   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) {