summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKUDr <KUDr@openttd.org>2007-01-18 23:48:04 +0000
committerKUDr <KUDr@openttd.org>2007-01-18 23:48:04 +0000
commitc791bbe54e361b4e562ce3daa28f381d4bfa96af (patch)
tree08581f26a927b1ae3c2c8c9dc14810dc4e750ce3
parentb42940f1dbd8879be1df7b841ff9b05072df77db (diff)
downloadopenttd-c791bbe54e361b4e562ce3daa28f381d4bfa96af.tar.xz
(svn r8273) -Fix: return value from clamp was ignored
-rw-r--r--src/misc_gui.cpp2
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);