summaryrefslogtreecommitdiff
path: root/vehicle_gui.c
diff options
context:
space:
mode:
authorbjarni <bjarni@openttd.org>2005-01-26 11:23:54 +0000
committerbjarni <bjarni@openttd.org>2005-01-26 11:23:54 +0000
commit518034d28d3664a3f3f6bb865eb8a8c4d0d3ccfe (patch)
treec24cbf96da5d2bb8fa77fc9081b476d39c1bb113 /vehicle_gui.c
parent7874c86cb29355441f1116a631a201fab5284f2a (diff)
downloadopenttd-518034d28d3664a3f3f6bb865eb8a8c4d0d3ccfe.tar.xz
(svn r1679) Fix: dropdown menus now returns the index of the string that was clicked even if a previous item is hidden
This bug was not triggered by the current code, but it's easier to code new features if you do not have to think about such limitations like you can't hide an item in the middle of the list ;)
Diffstat (limited to 'vehicle_gui.c')
-rw-r--r--vehicle_gui.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/vehicle_gui.c b/vehicle_gui.c
index 5052d3d56..d3f3178b1 100644
--- a/vehicle_gui.c
+++ b/vehicle_gui.c
@@ -867,7 +867,6 @@ static void ReplaceVehicleWndProc(Window *w, WindowEvent *e)
} break;
case WE_DROPDOWN_SELECT: { /* we have selected a dropdown item in the list */
- //potiential bug: railtypes needs to be activated 0, 1, 2... If one is skipped, it messes up
WP(w,replaceveh_d).railtype = e->dropdown.index;
SetWindowDirty(w);
} break;