diff options
Diffstat (limited to 'src/emoteshortcut.cpp')
-rw-r--r-- | src/emoteshortcut.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/emoteshortcut.cpp b/src/emoteshortcut.cpp index 73d0651e8..900581983 100644 --- a/src/emoteshortcut.cpp +++ b/src/emoteshortcut.cpp @@ -44,8 +44,8 @@ EmoteShortcut::~EmoteShortcut() void EmoteShortcut::load() { - for (unsigned char i = 0, j = 0; - i <= EmoteDB::getLast() && j < SHORTCUT_EMOTES; + for (unsigned char i = 0, j = 0, sz = EmoteDB::getLast(); + i <= sz && j < SHORTCUT_EMOTES; i++) { const AnimatedSprite *const sprite = EmoteDB::getAnimation(i, true); |