From 265404bb13509785270d09454fba69166bf9ed0b Mon Sep 17 00:00:00 2001 From: bjarni Date: Mon, 1 Aug 2005 12:55:21 +0000 Subject: (svn r2779) -Fix: [clone vehicles] fixed typos, which could lead to crashes when cloning refitted trains (chrishuebsch) --- vehicle.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vehicle.c b/vehicle.c index 5b889eb8b..9a6ec8816 100644 --- a/vehicle.c +++ b/vehicle.c @@ -1778,7 +1778,7 @@ int32 CmdCloneVehicle(int x, int y, uint32 flags, uint32 p1, uint32 p2) } } - 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); } -- cgit v1.2.3-70-g09d2