diff options
author | KUDr <KUDr@openttd.org> | 2007-01-18 23:48:04 +0000 |
---|---|---|
committer | KUDr <KUDr@openttd.org> | 2007-01-18 23:48:04 +0000 |
commit | c791bbe54e361b4e562ce3daa28f381d4bfa96af (patch) | |
tree | 08581f26a927b1ae3c2c8c9dc14810dc4e750ce3 /src/misc_gui.cpp | |
parent | b42940f1dbd8879be1df7b841ff9b05072df77db (diff) | |
download | openttd-c791bbe54e361b4e562ce3daa28f381d4bfa96af.tar.xz |
(svn r8273) -Fix: return value from clamp was ignored
Diffstat (limited to 'src/misc_gui.cpp')
-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); |