# HG changeset patch # User bjarni # Date 2005-08-01 12:55:21 # Node ID 11c885ee4192f71c651e645273fa0300c6442378 # Parent ed66e8511b3585ffa8825649f4044ef67c4e7af6 (svn r2779) -Fix: [clone vehicles] fixed typos, which could lead to crashes when cloning refitted trains (chrishuebsch) diff --git a/vehicle.c b/vehicle.c --- a/vehicle.c +++ b/vehicle.c @@ -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); }