From 314e35beffc2d41ec09ada6cd3369c56f9db9258 Mon Sep 17 00:00:00 2001 From: KUDr Date: Thu, 18 Jan 2007 23:48:04 +0000 Subject: (svn r8273) -Fix: return value from clamp was ignored --- src/misc_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/misc_gui.cpp') 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); -- cgit v1.2.3-54-g00ecf