diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-07-18 01:51:36 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-07-18 01:51:36 +0300 |
commit | f0e95132f27ceb901fbd779fafc798a1f67a06a6 (patch) | |
tree | 52ee9ab21f4e01c2c8ae70b86841b0138349645d /src/being.cpp | |
parent | 7e0a97d2521b9ce57003176e82a0b5564aa003c2 (diff) | |
download | manaplus-f0e95132f27ceb901fbd779fafc798a1f67a06a6.tar.gz manaplus-f0e95132f27ceb901fbd779fafc798a1f67a06a6.tar.bz2 manaplus-f0e95132f27ceb901fbd779fafc798a1f67a06a6.tar.xz manaplus-f0e95132f27ceb901fbd779fafc798a1f67a06a6.zip |
Another warning fixes.
Diffstat (limited to 'src/being.cpp')
-rw-r--r-- | src/being.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/being.cpp b/src/being.cpp index 6f0ac307b..33f4e102a 100644 --- a/src/being.cpp +++ b/src/being.cpp @@ -500,7 +500,7 @@ void Being::setSpeech(const std::string &text, int time) return; if (!time && mSpeech.size() < 200) - time = SPEECH_TIME - 300 + (3 * mSpeech.size()); + time = static_cast<int>(SPEECH_TIME - 300 + (3 * mSpeech.size())); if (time < SPEECH_MIN_TIME) time = SPEECH_MIN_TIME; @@ -2051,7 +2051,7 @@ void Being::drawSprites(Graphics* graphics, int posX, int posY) const void Being::drawSpritesSDL(Graphics* graphics, int posX, int posY) const { - const unsigned sz = size(); + const size_t sz = size(); for (unsigned f = 0; f < sz; f ++) { const int rSprite = mSpriteHide[mSpriteRemap[f]]; @@ -2523,7 +2523,7 @@ Equipment *Being::getEquipment() void Being::undressItemById(int id) { - int sz = mSpriteIDs.size(); + size_t sz = mSpriteIDs.size(); for (int f = 0; f < sz; f ++) { @@ -2691,7 +2691,7 @@ BeingEquipBackend::BeingEquipBackend(Being *being): memset(mEquipment, 0, sizeof(mEquipment)); if (being) { - int sz = being->mSpriteIDs.size(); + size_t sz = being->mSpriteIDs.size(); for (int f = 0; f < sz; f ++) { |