summaryrefslogtreecommitdiff
path: root/vehicle.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-06-04 09:28:33 +0000
committertron <tron@openttd.org>2006-06-04 09:28:33 +0000
commita0caafeb5075ca58232068b48050717f9cf02313 (patch)
tree6608f31fde29931d1c8c939c55782cc8de75c8fb /vehicle.c
parent9cf3badfcf4e99f20b8a751457ee76d22fc9f110 (diff)
downloadopenttd-a0caafeb5075ca58232068b48050717f9cf02313.tar.xz
(svn r5094) Remove _new_{aircraft,roadveh,ship,train,wagon}_id. _new_vehicle_id is enough.
Diffstat (limited to 'vehicle.c')
-rw-r--r--vehicle.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vehicle.c b/vehicle.c
index 7240562f1..ecb305006 100644
--- a/vehicle.c
+++ b/vehicle.c
@@ -1569,8 +1569,8 @@ int32 CmdCloneVehicle(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
} while (v->type == VEH_Train && (v = GetNextVehicle(v)) != NULL);
if (flags & DC_EXEC && v_front->type == VEH_Train) {
- // _new_train_id needs to be the front engine due to the callback function
- _new_train_id = w_front->index;
+ // for trains this needs to be the front engine due to the callback function
+ _new_vehicle_id = w_front->index;
}
return total_cost;
}