diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-02-28 15:22:00 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-02-28 15:22:00 +0300 |
commit | 096de2a656c036a241dd5f10c2bf28ae4d4dbe5a (patch) | |
tree | d79c67e9c78c87be1776334bc4a7cc00e427ba94 /src/emoteshortcut.cpp | |
parent | a53a7ddf1fb503d6158aea6518f9d5f81bee7b5d (diff) | |
download | manaplus-096de2a656c036a241dd5f10c2bf28ae4d4dbe5a.tar.gz manaplus-096de2a656c036a241dd5f10c2bf28ae4d4dbe5a.tar.bz2 manaplus-096de2a656c036a241dd5f10c2bf28ae4d4dbe5a.tar.xz manaplus-096de2a656c036a241dd5f10c2bf28ae4d4dbe5a.zip |
improve some files.
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); |