diff options
-rw-r--r-- | src/misc_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/misc_gui.cpp b/src/misc_gui.cpp index a0ff1b88c..66c650cba 100644 --- a/src/misc_gui.cpp +++ b/src/misc_gui.cpp @@ -1885,7 +1885,7 @@ static void CheatsWndProc(Window *w, WindowEvent *e) /* Increase or decrease the value and clamp it to extremes */ value += (x >= 30) ? step : -step; - clamp(value, ce->min, ce->max); + value = clamp(value, ce->min, ce->max); // take whatever the function returns value = ce->proc(value, (x >= 30) ? 1 : -1); |