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:
@@ -1275,7 +1275,7 @@ public:
|
||||
/* Was 'cancel' pressed? */
|
||||
if (!str.has_value()) return;
|
||||
|
||||
auto value = ParseInteger(*str);
|
||||
auto value = ParseInteger(*str, 10, true);
|
||||
if (!value.has_value()) return;
|
||||
|
||||
Backup<bool> old_generating_world(_generating_world, true);
|
||||
|
||||
Reference in New Issue
Block a user