From 59d84975e046ea13248b6fe54d6948577ae4dc15 Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Sun, 19 Apr 2020 11:45:07 +0100 Subject: [PATCH] Fix length limit of waiting cargo amount cond order text input --- src/order_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/order_gui.cpp b/src/order_gui.cpp index 08b3bd9439..cfbb348f9d 100644 --- a/src/order_gui.cpp +++ b/src/order_gui.cpp @@ -2182,7 +2182,7 @@ public: if (order->GetConditionVariable() == OCV_CARGO_WAITING_AMOUNT) value = ConvertCargoQuantityToDisplayQuantity(order->GetConditionValue(), value); this->query_text_widget = widget; SetDParam(0, value); - ShowQueryString(STR_JUST_INT, STR_ORDER_CONDITIONAL_VALUE_CAPT, 5, this, CS_NUMERAL, QSF_NONE); + ShowQueryString(STR_JUST_INT, STR_ORDER_CONDITIONAL_VALUE_CAPT, (order->GetConditionVariable() == OCV_CARGO_WAITING_AMOUNT) ? 12 : 6, this, CS_NUMERAL, QSF_NONE); break; }