summaryrefslogtreecommitdiff
path: root/src/emoteshortcut.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-03-18 22:13:37 +0200
committerAndrei Karas <akaras@inbox.ru>2011-03-18 22:13:37 +0200
commitf4792bc06f21335fc2d1171d937ea7645ca0c253 (patch)
treec7b11cf81f254f5b9ed2f5dbfe127649abc7545a /src/emoteshortcut.cpp
parentf98d003e354a1792117b7cbc771d1dd91475a156 (diff)
downloadplus-f4792bc06f21335fc2d1171d937ea7645ca0c253.tar.gz
plus-f4792bc06f21335fc2d1171d937ea7645ca0c253.tar.bz2
plus-f4792bc06f21335fc2d1171d937ea7645ca0c253.tar.xz
plus-f4792bc06f21335fc2d1171d937ea7645ca0c253.zip
Fix most conversions except manaserv net code and some other code.
Diffstat (limited to 'src/emoteshortcut.cpp')
-rw-r--r--src/emoteshortcut.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/emoteshortcut.cpp b/src/emoteshortcut.cpp
index 9fb64492a..238ae75f5 100644
--- a/src/emoteshortcut.cpp
+++ b/src/emoteshortcut.cpp
@@ -44,12 +44,14 @@ EmoteShortcut::~EmoteShortcut()
void EmoteShortcut::load()
{
- for (int i = 0, j = 0; i <= EmoteDB::getLast() && j < SHORTCUT_EMOTES; i++)
+ for (unsigned char i = 0, j = 0;
+ i <= EmoteDB::getLast() && j < SHORTCUT_EMOTES;
+ i++)
{
const AnimatedSprite* sprite = EmoteDB::getAnimation(i, true);
if (sprite)
{
- mEmotes[j] = i + 1;
+ mEmotes[j] = static_cast<unsigned char>(i + 1);
j ++;
}
}