diff options
author | frosch <frosch@openttd.org> | 2011-01-29 23:42:40 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2011-01-29 23:42:40 +0000 |
commit | f48838ef3f62c1a15257d52d18626e702444bd6d (patch) | |
tree | e201e16391a3c9580a14b642a188225ffee13edb | |
parent | eea2f90da74546d7587f51c4080e6380aecbaa98 (diff) | |
download | openttd-f48838ef3f62c1a15257d52d18626e702444bd6d.tar.xz |
(svn r21926) -Fix [FS#4450](r21924): v != w.
-rw-r--r-- | src/vehicle_cmd.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vehicle_cmd.cpp b/src/vehicle_cmd.cpp index ac3b90eac..f1acadd56 100644 --- a/src/vehicle_cmd.cpp +++ b/src/vehicle_cmd.cpp @@ -786,8 +786,8 @@ CommandCost CmdCloneVehicle(TileIndex tile, DoCommandFlag flags, uint32 p1, uint } } - if (w->IsGroundVehicle() && w->HasArticulatedPart()) { - w = w->GetNextArticulatedPart(); + if (v->IsGroundVehicle() && v->HasArticulatedPart()) { + v = v->GetNextArticulatedPart(); } else { break; } |