diff options
Diffstat (limited to 'src/gui/shortcut/emoteshortcut.cpp')
-rw-r--r-- | src/gui/shortcut/emoteshortcut.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/gui/shortcut/emoteshortcut.cpp b/src/gui/shortcut/emoteshortcut.cpp index 0fcf4abaf..81b0e2b19 100644 --- a/src/gui/shortcut/emoteshortcut.cpp +++ b/src/gui/shortcut/emoteshortcut.cpp @@ -75,26 +75,24 @@ void EmoteShortcut::save() const } } -void EmoteShortcut::useEmotePlayer(const int index) const +void EmoteShortcut::useEmotePlayer(const size_t index) const { if (localPlayer == nullptr) return; - if (index > 0 && - index <= SHORTCUT_EMOTES) + if (index <= SHORTCUT_EMOTES) { if (mEmotes[index - 1] > 0) localPlayer->emote(mEmotes[index - 1]); } } -void EmoteShortcut::useEmote(const int index) const +void EmoteShortcut::useEmote(const size_t index) const { if (localPlayer == nullptr) return; - if (index > 0 && - index <= SHORTCUT_EMOTES) + if (index <= SHORTCUT_EMOTES) { if (mEmotes[index - 1] > 0) { |