diff src/vehicle.cpp @ 6501:df19358ee8c3 draft

(svn r9684) -Fix (r9683): Remove vehicles from the station loading list instead of adding them again when they leave, and add a v->LeaveStation() call for aircraft.
author maedhros <maedhros@openttd.org>
date Fri, 20 Apr 2007 11:05:56 +0000
parents ad8ea1f30c99
children 715dde777d97
line wrap: on
line diff
--- a/src/vehicle.cpp
+++ b/src/vehicle.cpp
@@ -2916,5 +2916,5 @@
 	assert(current_order.type == OT_LOADING);
 	current_order.type = OT_LEAVESTATION;
 	current_order.flags = 0;
-	GetStation(this->last_station_visited)->loading_vehicles.push_back(this);
+	GetStation(this->last_station_visited)->loading_vehicles.remove(this);
 }