Changeset - r2259:11c885ee4192
[Not reviewed]
master
0 1 0
bjarni - 19 years ago 2005-08-01 12:55:21
bjarni@openttd.org
(svn r2779) -Fix: [clone vehicles] fixed typos, which could lead to crashes when cloning refitted trains (chrishuebsch)
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
vehicle.c
Show inline comments
 
@@ -1778,7 +1778,7 @@ int32 CmdCloneVehicle(int x, int y, uint
 
			
 
		}
 
	}
 
	if (flags && DC_EXEC && needs_refitting != 255 && v->type != VEH_Road) {	// right now we do not refit road vehicles
 
	if (flags & DC_EXEC && needs_refitting != 255 && vfront->type != VEH_Road) {	// right now we do not refit road vehicles
 
		if (DoCommandByTile(wfront->tile, wfront->index, needs_refitting, 0, refit_command) != CMD_ERROR)
 
			DoCommandByTile(wfront->tile, wfront->index, needs_refitting, DC_EXEC, refit_command);
 
	}
0 comments (0 inline, 0 general)