summaryrefslogtreecommitdiff
path: root/src/progs/manaplus/actions/commands.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/progs/manaplus/actions/commands.cpp')
-rw-r--r--src/progs/manaplus/actions/commands.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/progs/manaplus/actions/commands.cpp b/src/progs/manaplus/actions/commands.cpp
index dd58c221b..711816eac 100644
--- a/src/progs/manaplus/actions/commands.cpp
+++ b/src/progs/manaplus/actions/commands.cpp
@@ -1036,9 +1036,11 @@ impHandler(homunEmote)
event.action >= InputAction::HOMUN_EMOTE_1 &&
event.action <= InputAction::HOMUN_EMOTE_48)
{
- const int emotion = event.action - InputAction::HOMUN_EMOTE_1;
if (emoteShortcut != nullptr)
+ {
+ const int emotion = event.action - InputAction::HOMUN_EMOTE_1;
homunculusHandler->emote(emoteShortcut->getEmote(emotion));
+ }
if (Game::instance() != nullptr)
Game::instance()->setValidSpeed();
return true;