diff options
author | rubidium <rubidium@openttd.org> | 2013-11-24 14:46:26 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2013-11-24 14:46:26 +0000 |
commit | 83eeba28b7272a870f777f2f21bfc1def36e873f (patch) | |
tree | 592e23a29d5235307e2984cbd8220d0cd3a1ec76 /src/order_gui.cpp | |
parent | db894b0b3fa13413cdb76989cfcd2bb789243b77 (diff) | |
download | openttd-83eeba28b7272a870f777f2f21bfc1def36e873f.tar.xz |
(svn r26086) -Codechange: use AutoDeleteSmallVector instead std::list for dropdowns
Diffstat (limited to 'src/order_gui.cpp')
-rw-r--r-- | src/order_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/order_gui.cpp b/src/order_gui.cpp index 8123013a4..e62cf595f 100644 --- a/src/order_gui.cpp +++ b/src/order_gui.cpp @@ -1319,7 +1319,7 @@ public: case WID_O_COND_VARIABLE: { DropDownList *list = new DropDownList(); for (uint i = 0; i < lengthof(_order_conditional_variable); i++) { - list->push_back(new DropDownListStringItem(STR_ORDER_CONDITIONAL_LOAD_PERCENTAGE + _order_conditional_variable[i], _order_conditional_variable[i], false)); + *list->Append() = new DropDownListStringItem(STR_ORDER_CONDITIONAL_LOAD_PERCENTAGE + _order_conditional_variable[i], _order_conditional_variable[i], false); } ShowDropDownList(this, list, this->vehicle->GetOrder(this->OrderGetSel())->GetConditionVariable(), WID_O_COND_VARIABLE); break; |