diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-03-18 02:41:44 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-03-18 02:41:44 +0300 |
commit | ac9594ec37a52c436b87a2d431e7df126592e4a5 (patch) | |
tree | 6ed9fb95eee7e70b7de5d1e2ffe69864d0a394de /src | |
parent | 7dead43dd6c27b1554b8bfaad6b9238e5e1d1a41 (diff) | |
download | plus-ac9594ec37a52c436b87a2d431e7df126592e4a5.tar.gz plus-ac9594ec37a52c436b87a2d431e7df126592e4a5.tar.bz2 plus-ac9594ec37a52c436b87a2d431e7df126592e4a5.tar.xz plus-ac9594ec37a52c436b87a2d431e7df126592e4a5.zip |
Fix config keys validation.
Diffstat (limited to 'src')
-rw-r--r-- | src/keyboardconfig.cpp | 2 |
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; } } |