summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSamuXarick <43006711+SamuXarick@users.noreply.github.com>2021-06-27 23:58:54 +0100
committerGitHub <noreply@github.com>2021-06-28 00:58:54 +0200
commit003b6a0c85157059d0339dbfa551db7ec3b40cd9 (patch)
tree3059a215736388b564838ef053675fcb1258d18a /src
parent59e96cd56a69f2b44fb22ca0e4eb9cc2157fd7c6 (diff)
downloadopenttd-003b6a0c85157059d0339dbfa551db7ec3b40cd9.tar.xz
Fix ea9715d: not all setting values were clamped properly (#9401)
Diffstat (limited to 'src')
-rw-r--r--src/settings.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/settings.cpp b/src/settings.cpp
index 9d0e125b0..a7a50db11 100644
--- a/src/settings.cpp
+++ b/src/settings.cpp
@@ -439,7 +439,7 @@ void IntSettingDesc::MakeValueValid(int32 &val) const
uval = (uint32)this->def;
}
}
- val = (int32)val;
+ val = (int32)uval;
return;
}
case SLE_VAR_I64: