diff options
Diffstat (limited to 'src')
-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; } |