summaryrefslogtreecommitdiff
path: root/src
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
commit314e35beffc2d41ec09ada6cd3369c56f9db9258 (patch)
tree08581f26a927b1ae3c2c8c9dc14810dc4e750ce3 /src
parent6230f9b922eecada14a5309f541b9fea746d94bf (diff)
downloadopenttd-314e35beffc2d41ec09ada6cd3369c56f9db9258.tar.xz
(svn r8273) -Fix: return value from clamp was ignored
Diffstat (limited to 'src')
-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);