summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-08-26 21:53:11 +0000
committerrubidium <rubidium@openttd.org>2007-08-26 21:53:11 +0000
commit68d385b77ca4026acaec6c789ed1ef2905632395 (patch)
tree24749c4b923b69b86b48b7c245eecb718be525f5 /src
parent3c919e36a7408b681f9ff7b4a1e5fe6a4d75fe1e (diff)
downloadopenttd-68d385b77ca4026acaec6c789ed1ef2905632395.tar.xz
(svn r10986) -Fix (r10985): inconsistency between documentation and actual code... thanks to glx for spotting it.
Diffstat (limited to 'src')
-rw-r--r--src/depot_gui.cpp2
1 files changed, 1 insertions, 1 deletions
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;