From 096de2a656c036a241dd5f10c2bf28ae4d4dbe5a Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 28 Feb 2013 15:22:00 +0300 Subject: improve some files. --- src/emoteshortcut.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/emoteshortcut.cpp') 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); -- cgit v1.2.3-60-g2f50