diff options
-rw-r--r-- | src/settings_gui.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/settings_gui.cpp b/src/settings_gui.cpp index 3020aaba0..30bad8889 100644 --- a/src/settings_gui.cpp +++ b/src/settings_gui.cpp @@ -923,6 +923,7 @@ struct PatchesSelectionWindow : Window { if (x >= 10) { value += step; if (value > sdb->max) value = sdb->max; + if (value < sdb->min) value = sdb->min; // skip between "disabled" and minimum } else { value -= step; if (value < sdb->min) value = (sdb->flags & SGF_0ISDISABLED) ? 0 : sdb->min; |