Changeset - r10198:a2df0dee10c1
[Not reviewed]
master
0 1 0
frosch - 16 years ago 2008-09-28 15:07:03
frosch@openttd.org
(svn r14411) -Fix (r14406): IsFrontEngine() is only valid for trains.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/autoreplace_cmd.cpp
Show inline comments
 
@@ -93,7 +93,7 @@ bool CheckAutoreplaceValidity(EngineID f
 
 */
 
static void TransferCargo(Vehicle *old_veh, Vehicle *new_head, bool part_of_chain)
 
{
 
	assert(!part_of_chain || IsFrontEngine(new_head));
 
	assert(!part_of_chain || new_head->IsPrimaryVehicle());
 
	/* Loop through source parts */
 
	for (Vehicle *src = old_veh; src != NULL; src = src->Next()) {
 
		if (!part_of_chain && src->type == VEH_TRAIN && src != old_veh && src != old_veh->u.rail.other_multiheaded_part && !IsArticulatedPart(src)) {
0 comments (0 inline, 0 general)