diff options
Diffstat (limited to 'src/gui/windowmenu.cpp')
-rw-r--r-- | src/gui/windowmenu.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/windowmenu.cpp b/src/gui/windowmenu.cpp index aff7c5c5..01194c0b 100644 --- a/src/gui/windowmenu.cpp +++ b/src/gui/windowmenu.cpp @@ -153,9 +153,9 @@ void WindowMenu::valueChanged(const gcn::SelectionEvent &event) { if (event.getSource() == mEmotePopup) { - int emote = mEmotePopup->getSelectedEmote(); - if (emote) - Net::getPlayerHandler()->emote(emote); + int emoteId = mEmotePopup->getSelectedEmoteId(); + if (emoteId != -1) + Net::getPlayerHandler()->emote(emoteId); windowContainer->scheduleDelete(mEmotePopup); mEmotePopup = nullptr; |