diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-07-18 02:44:03 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-07-18 02:44:03 +0300 |
commit | e28e0566b6141df26fc1632f5ff67da47d4cd350 (patch) | |
tree | 5cd4a10796bb0c8ee8f319a55cf253b471374b9e /src/being.cpp | |
parent | f0e95132f27ceb901fbd779fafc798a1f67a06a6 (diff) | |
download | manaverse-e28e0566b6141df26fc1632f5ff67da47d4cd350.tar.gz manaverse-e28e0566b6141df26fc1632f5ff67da47d4cd350.tar.bz2 manaverse-e28e0566b6141df26fc1632f5ff67da47d4cd350.tar.xz manaverse-e28e0566b6141df26fc1632f5ff67da47d4cd350.zip |
last warning fixes.
Diffstat (limited to 'src/being.cpp')
-rw-r--r-- | src/being.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/being.cpp b/src/being.cpp index 33f4e102a..14bfe1923 100644 --- a/src/being.cpp +++ b/src/being.cpp @@ -2525,11 +2525,11 @@ void Being::undressItemById(int id) { size_t sz = mSpriteIDs.size(); - for (int f = 0; f < sz; f ++) + for (size_t f = 0; f < sz; f ++) { if (id == mSpriteIDs[f]) { - setSprite(f, 0); + setSprite(static_cast<unsigned int>(f), 0); break; } } @@ -2693,7 +2693,7 @@ BeingEquipBackend::BeingEquipBackend(Being *being): { size_t sz = being->mSpriteIDs.size(); - for (int f = 0; f < sz; f ++) + for (unsigned f = 0; f < sz; f ++) { int idx = Net::getInventoryHandler()->convertFromServerSlot(f); int id = being->mSpriteIDs[f]; |