diff options
-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; } } |