diff options
Diffstat (limited to 'src/actions/actions.cpp')
-rw-r--r-- | src/actions/actions.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/actions/actions.cpp b/src/actions/actions.cpp index 0b8e8aedc..a3c17cb1d 100644 --- a/src/actions/actions.cpp +++ b/src/actions/actions.cpp @@ -65,6 +65,8 @@ #include "gui/widgets/tabs/chat/chattab.h" +#include "input/inputactionoperators.h" + #if defined USE_OPENGL #include "render/normalopenglgraphics.h" #endif @@ -284,7 +286,7 @@ static int getAmountFromEvent(const InputEvent &event, impHandler(emote) { - const int emotion = 1 + event.action - InputAction::EMOTE_1; + const int emotion = 1 + (event.action - InputAction::EMOTE_1); if (emotion > 0) { if (emoteShortcut) |