summaryrefslogtreecommitdiff
path: root/src/gui/shortcut/emoteshortcut.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/shortcut/emoteshortcut.cpp')
-rw-r--r--src/gui/shortcut/emoteshortcut.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/shortcut/emoteshortcut.cpp b/src/gui/shortcut/emoteshortcut.cpp
index 81b0e2b19..fb59da96b 100644
--- a/src/gui/shortcut/emoteshortcut.cpp
+++ b/src/gui/shortcut/emoteshortcut.cpp
@@ -80,7 +80,7 @@ void EmoteShortcut::useEmotePlayer(const size_t index) const
if (localPlayer == nullptr)
return;
- if (index <= SHORTCUT_EMOTES)
+ if (index <= CAST_SIZE(SHORTCUT_EMOTES))
{
if (mEmotes[index - 1] > 0)
localPlayer->emote(mEmotes[index - 1]);
@@ -92,7 +92,7 @@ void EmoteShortcut::useEmote(const size_t index) const
if (localPlayer == nullptr)
return;
- if (index <= SHORTCUT_EMOTES)
+ if (index <= CAST_SIZE(SHORTCUT_EMOTES))
{
if (mEmotes[index - 1] > 0)
{