diff options
author | bjarni <bjarni@openttd.org> | 2005-08-01 12:55:21 +0000 |
---|---|---|
committer | bjarni <bjarni@openttd.org> | 2005-08-01 12:55:21 +0000 |
commit | e06d017b91715f8e24fb2053bf62fc2ad9d1ae89 (patch) | |
tree | de7020255a20bf0acc5c20e87d12b95227e371a5 | |
parent | 211280ab0e29fa2fa425bb16ed0417de9725bfb1 (diff) | |
download | openttd-e06d017b91715f8e24fb2053bf62fc2ad9d1ae89.tar.xz |
(svn r2779) -Fix: [clone vehicles] fixed typos, which could lead to crashes when cloning refitted trains (chrishuebsch)
-rw-r--r-- | vehicle.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); } |