From f4792bc06f21335fc2d1171d937ea7645ca0c253 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 18 Mar 2011 22:13:37 +0200 Subject: Fix most conversions except manaserv net code and some other code. --- src/emoteshortcut.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/emoteshortcut.cpp') 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(i + 1); j ++; } } -- cgit v1.2.3-60-g2f50