Fix: Restore the behaviour when entering numbers in query windows: clamp integers out of range to the maximum valid value.
This commit is contained in:
@@ -1363,7 +1363,7 @@ public:
|
||||
if (!str.has_value() || str->empty()) return;
|
||||
|
||||
VehicleOrderID sel = this->OrderGetSel();
|
||||
auto value = ParseInteger(*str);
|
||||
auto value = ParseInteger(*str, 10, true);
|
||||
if (!value.has_value()) return;
|
||||
|
||||
switch (this->vehicle->GetOrder(sel)->GetConditionVariable()) {
|
||||
|
||||
Reference in New Issue
Block a user