src/station.cpp
changeset 7916 8bc57ab02de6
parent 7909 8df54a2839a1
child 7949 1fcfd903d923
equal deleted inserted replaced
7915:8b20c0c2debf 7916:8bc57ab02de6
   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) {