summaryrefslogtreecommitdiff
path: root/src/emoteshortcut.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-02-28 15:22:00 +0300
committerAndrei Karas <akaras@inbox.ru>2013-02-28 15:22:00 +0300
commit096de2a656c036a241dd5f10c2bf28ae4d4dbe5a (patch)
treed79c67e9c78c87be1776334bc4a7cc00e427ba94 /src/emoteshortcut.cpp
parenta53a7ddf1fb503d6158aea6518f9d5f81bee7b5d (diff)
downloadplus-096de2a656c036a241dd5f10c2bf28ae4d4dbe5a.tar.gz
plus-096de2a656c036a241dd5f10c2bf28ae4d4dbe5a.tar.bz2
plus-096de2a656c036a241dd5f10c2bf28ae4d4dbe5a.tar.xz
plus-096de2a656c036a241dd5f10c2bf28ae4d4dbe5a.zip
improve some files.
Diffstat (limited to 'src/emoteshortcut.cpp')
-rw-r--r--src/emoteshortcut.cpp4
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);