From 68d385b77ca4026acaec6c789ed1ef2905632395 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sun, 26 Aug 2007 21:53:11 +0000 Subject: (svn r10986) -Fix (r10985): inconsistency between documentation and actual code... thanks to glx for spotting it. --- src/depot_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/depot_gui.cpp b/src/depot_gui.cpp index dc90e50de..ec21d4069 100644 --- a/src/depot_gui.cpp +++ b/src/depot_gui.cpp @@ -143,7 +143,7 @@ void CcCloneVehicle(bool success, TileIndex tile, uint32 p1, uint32 p2) Vehicle *v = GetVehicle(_new_vehicle_id); - switch(GetVehicle(p1)->type) { + switch (v->type) { case VEH_TRAIN: ShowTrainViewWindow(v); break; case VEH_ROAD: ShowRoadVehViewWindow(v); break; case VEH_SHIP: ShowShipViewWindow(v); break; -- cgit v1.2.3-54-g00ecf