From 726edbf3c040581e21819fc3adbb9ed19dc3e952 Mon Sep 17 00:00:00 2001 From: alberth Date: Sun, 1 Nov 2009 21:05:48 +0000 Subject: (svn r17944) -Codechange (r11848): Removed the second counter variable that ran in sync with the first one. --- src/widgets/dropdown.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/widgets') diff --git a/src/widgets/dropdown.cpp b/src/widgets/dropdown.cpp index 094e431e4..9aeca7243 100644 --- a/src/widgets/dropdown.cpp +++ b/src/widgets/dropdown.cpp @@ -392,14 +392,12 @@ void ShowDropDownList(Window *w, DropDownList *list, int selected, int button, u */ void ShowDropDownMenu(Window *w, const StringID *strings, int selected, int button, uint32 disabled_mask, uint32 hidden_mask, uint width) { - uint result = 0; DropDownList *list = new DropDownList(); for (uint i = 0; strings[i] != INVALID_STRING_ID; i++) { if (!HasBit(hidden_mask, i)) { - list->push_back(new DropDownListStringItem(strings[i], result, HasBit(disabled_mask, i))); + list->push_back(new DropDownListStringItem(strings[i], i, HasBit(disabled_mask, i))); } - result++; } /* No entries in the list? */ -- cgit v1.2.3-70-g09d2