summaryrefslogtreecommitdiff
path: root/src/keyboardconfig.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-03-18 02:41:44 +0300
committerAndrei Karas <akaras@inbox.ru>2012-03-18 02:41:44 +0300
commitac9594ec37a52c436b87a2d431e7df126592e4a5 (patch)
tree6ed9fb95eee7e70b7de5d1e2ffe69864d0a394de /src/keyboardconfig.cpp
parent7dead43dd6c27b1554b8bfaad6b9238e5e1d1a41 (diff)
downloadmanaplus-ac9594ec37a52c436b87a2d431e7df126592e4a5.tar.gz
manaplus-ac9594ec37a52c436b87a2d431e7df126592e4a5.tar.bz2
manaplus-ac9594ec37a52c436b87a2d431e7df126592e4a5.tar.xz
manaplus-ac9594ec37a52c436b87a2d431e7df126592e4a5.zip
Fix config keys validation.
Diffstat (limited to 'src/keyboardconfig.cpp')
-rw-r--r--src/keyboardconfig.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/keyboardconfig.cpp b/src/keyboardconfig.cpp
index 222fa28d5..20a5f2d56 100644
--- a/src/keyboardconfig.cpp
+++ b/src/keyboardconfig.cpp
@@ -397,7 +397,7 @@ void KeyboardConfig::retrieve()
{
mKey[i].value = static_cast<int>(config.getValue(
mKey[i].configField, mKey[i].defaultValue));
- if (mKey[i].value < -255 || mKey[i].value > SDLK_LAST)
+ if (mKey[i].value < -255 || mKey[i].value >= SDLK_LAST)
mKey[i].value = KEY_NO_VALUE;
}
}