Changeset - r5794:197ed16e0231
[Not reviewed]
master
0 1 0
bjarni - 17 years ago 2007-01-22 16:48:36
bjarni@openttd.org
(svn r8353) -Cleanup: added IsPlayerBuildableVehicleType() to autoreplace code (duplicated code removal)
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/vehicle.cpp
Show inline comments
 
@@ -2152,7 +2152,7 @@ static int32 MaybeReplaceVehicle(Vehicle
 

	
 
	_current_player = v->owner;
 

	
 
	assert(v->type == VEH_Train || v->type == VEH_Road || v->type == VEH_Ship || v->type == VEH_Aircraft);
 
	assert(IsPlayerBuildableVehicleType(v));
 

	
 
	assert(v->vehstatus & VS_STOPPED); // the vehicle should have been stopped in VehicleEnteredDepotThisTick() if needed
 

	
0 comments (0 inline, 0 general)