diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-08-09 01:30:21 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-08-09 01:59:55 +0300 |
commit | 6a4bf944ace9215924b3f37f634a2fac35febd13 (patch) | |
tree | 1c9a8677d48482d1affc344ac5008f1e963ffaa5 /src/gui/shortcut/emoteshortcut.cpp | |
parent | 64887d7ee931fa8426d25c4aaf0ee1a767d4a761 (diff) | |
download | plus-6a4bf944ace9215924b3f37f634a2fac35febd13.tar.gz plus-6a4bf944ace9215924b3f37f634a2fac35febd13.tar.bz2 plus-6a4bf944ace9215924b3f37f634a2fac35febd13.tar.xz plus-6a4bf944ace9215924b3f37f634a2fac35febd13.zip |
Fix warning with old compilers.
Diffstat (limited to 'src/gui/shortcut/emoteshortcut.cpp')
-rw-r--r-- | src/gui/shortcut/emoteshortcut.cpp | 4 |
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) { |