summaryrefslogtreecommitdiff
path: root/src/keyboardconfig.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/keyboardconfig.cpp')
-rw-r--r--src/keyboardconfig.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/keyboardconfig.cpp b/src/keyboardconfig.cpp
index 42ef9440..442ec046 100644
--- a/src/keyboardconfig.cpp
+++ b/src/keyboardconfig.cpp
@@ -218,10 +218,10 @@ int KeyboardConfig::getKeyEmoteOffset(int keyValue) const
{
if (keyValue == mKey[i].value)
{
- return 1 + i - KEY_EMOTE_1;
+ return i - KEY_EMOTE_1;
}
}
- return 0;
+ return -1;
}
bool KeyboardConfig::isKeyActive(int index) const