diff options
Diffstat (limited to 'src/cheat_gui.cpp')
-rw-r--r-- | src/cheat_gui.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cheat_gui.cpp b/src/cheat_gui.cpp index 398bef00a..e252912c3 100644 --- a/src/cheat_gui.cpp +++ b/src/cheat_gui.cpp @@ -125,7 +125,8 @@ static int32 ClickChangeDateCheat(int32 p1, int32 p2) * @return New value (or unchanged old value) of the maximum * allowed heightlevel value. */ -static int32 ClickChangeMaxHlCheat(int32 p1, int32 p2) { +static int32 ClickChangeMaxHlCheat(int32 p1, int32 p2) +{ p1 = Clamp(p1, MIN_MAX_HEIGHTLEVEL, MAX_MAX_HEIGHTLEVEL); /* Check if at least one mountain on the map is higher than the new value. |