diff options
Diffstat (limited to 'src/depot_gui.cpp')
-rw-r--r-- | src/depot_gui.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/depot_gui.cpp b/src/depot_gui.cpp index c63606582..f95f9ade6 100644 --- a/src/depot_gui.cpp +++ b/src/depot_gui.cpp @@ -116,13 +116,13 @@ extern void DepotSortList(VehicleList *list); * This is the Callback method after the cloning attempt of a vehicle * @param cmd unused * @param result the result of the cloning command - * @param tile unused + * @param veh_id cloned vehicle ID */ -void CcCloneVehicle(Commands cmd, const CommandCost &result, TileIndex tile) +void CcCloneVehicle(Commands cmd, const CommandCost &result, VehicleID veh_id) { if (result.Failed()) return; - const Vehicle *v = Vehicle::Get(_new_vehicle_id); + const Vehicle *v = Vehicle::Get(veh_id); ShowVehicleViewWindow(v); } |