(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 ;)
This commit is contained in:
bjarni
2005-01-26 11:23:54 +00:00
parent 7874c86cb2
commit 518034d28d
2 changed files with 29 additions and 26 deletions

View File

@@ -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;