diff options
author | rubidium <rubidium@openttd.org> | 2007-08-26 21:53:11 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-08-26 21:53:11 +0000 |
commit | e7b9f597df7c085210e0f06db05713c1ff2bf405 (patch) | |
tree | 24749c4b923b69b86b48b7c245eecb718be525f5 /src | |
parent | 9e630945b2dcfcae4e0bfb8160d88200555eab50 (diff) | |
download | openttd-e7b9f597df7c085210e0f06db05713c1ff2bf405.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.cpp | 2 |
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; |