summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2011-01-29 23:42:40 +0000
committerfrosch <frosch@openttd.org>2011-01-29 23:42:40 +0000
commitf48838ef3f62c1a15257d52d18626e702444bd6d (patch)
treee201e16391a3c9580a14b642a188225ffee13edb /src
parenteea2f90da74546d7587f51c4080e6380aecbaa98 (diff)
downloadopenttd-f48838ef3f62c1a15257d52d18626e702444bd6d.tar.xz
(svn r21926) -Fix [FS#4450](r21924): v != w.
Diffstat (limited to 'src')
-rw-r--r--src/vehicle_cmd.cpp4
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;
}