summaryrefslogtreecommitdiff
path: root/src/gui/shortcut/emoteshortcut.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-08-09 01:30:21 +0300
committerAndrei Karas <akaras@inbox.ru>2017-08-09 01:59:55 +0300
commit6a4bf944ace9215924b3f37f634a2fac35febd13 (patch)
tree1c9a8677d48482d1affc344ac5008f1e963ffaa5 /src/gui/shortcut/emoteshortcut.h
parent64887d7ee931fa8426d25c4aaf0ee1a767d4a761 (diff)
downloadmv-6a4bf944ace9215924b3f37f634a2fac35febd13.tar.gz
mv-6a4bf944ace9215924b3f37f634a2fac35febd13.tar.bz2
mv-6a4bf944ace9215924b3f37f634a2fac35febd13.tar.xz
mv-6a4bf944ace9215924b3f37f634a2fac35febd13.zip
Fix warning with old compilers.
Diffstat (limited to 'src/gui/shortcut/emoteshortcut.h')
-rw-r--r--src/gui/shortcut/emoteshortcut.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/shortcut/emoteshortcut.h b/src/gui/shortcut/emoteshortcut.h
index 282f12943..2ecc2c1b7 100644
--- a/src/gui/shortcut/emoteshortcut.h
+++ b/src/gui/shortcut/emoteshortcut.h
@@ -24,6 +24,8 @@
#include "const/emoteshortcut.h"
+#include "utils/cast.h"
+
#include "localconsts.h"
/**
@@ -105,7 +107,7 @@ class EmoteShortcut final
* Remove a Emote from the shortcut.
*/
void removeEmote(const size_t index)
- { if (index < SHORTCUT_EMOTES) mEmotes[index] = 0; }
+ { if (index < CAST_SIZE(SHORTCUT_EMOTES)) mEmotes[index] = 0; }
/**
* Try to use the Emote specified by the index.