From c791bbe54e361b4e562ce3daa28f381d4bfa96af Mon Sep 17 00:00:00 2001 From: KUDr Date: Thu, 18 Jan 2007 23:48:04 +0000 Subject: [PATCH] (svn r8273) -Fix: return value from clamp was ignored --- src/misc_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/misc_gui.cpp b/src/misc_gui.cpp index a0ff1b88c0..66c650cba0 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);