diff options
author | bjarni <bjarni@openttd.org> | 2005-01-26 11:23:54 +0000 |
---|---|---|
committer | bjarni <bjarni@openttd.org> | 2005-01-26 11:23:54 +0000 |
commit | d7fc1b2c69216a692dbddb7625afd8cccd728c26 (patch) | |
tree | c24cbf96da5d2bb8fa77fc9081b476d39c1bb113 /vehicle_gui.c | |
parent | 08727614fcc6940ebd77a94a3dfd8b7897587c7a (diff) | |
download | openttd-d7fc1b2c69216a692dbddb7625afd8cccd728c26.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.c | 1 |
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; |