Changeset - r6526:a7943275f871
[Not reviewed]
master
0 1 0
peter1138 - 17 years ago 2007-04-24 19:05:16
peter1138@openttd.org
(svn r9714) -Fix (r8110): Remove invalid assertion triggered by overly long trains being reversed while loading.
1 file changed with 0 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/vehicle.cpp
Show inline comments
 
@@ -2930,12 +2930,11 @@ void Vehicle::BeginLoading()
 
	current_order.type = OT_LOADING;
 
	GetStation(this->last_station_visited)->loading_vehicles.push_back(this);
 
}
 

	
 
void Vehicle::LeaveStation()
 
{
 
	assert(IsTileType(tile, MP_STATION) || type == VEH_SHIP);
 
	assert(current_order.type == OT_LOADING);
 
	current_order.type = OT_LEAVESTATION;
 
	current_order.flags = 0;
 
	GetStation(this->last_station_visited)->loading_vehicles.remove(this);
 
}
0 comments (0 inline, 0 general)