summaryrefslogtreecommitdiff
path: root/src/being/localplayer.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-04-30 19:53:23 +0300
committerAndrei Karas <akaras@inbox.ru>2014-04-30 19:53:23 +0300
commitd42aa0fad2f04b4e021b20b313ba6c9fb0d4e9d5 (patch)
treeae9e96faf2ae25a47b0f0f207b55d201729e3e41 /src/being/localplayer.cpp
parent237449794444d60ecc4a669d78becac5372da723 (diff)
downloadmanaplus-d42aa0fad2f04b4e021b20b313ba6c9fb0d4e9d5.tar.gz
manaplus-d42aa0fad2f04b4e021b20b313ba6c9fb0d4e9d5.tar.bz2
manaplus-d42aa0fad2f04b4e021b20b313ba6c9fb0d4e9d5.tar.xz
manaplus-d42aa0fad2f04b4e021b20b313ba6c9fb0d4e9d5.zip
Fix code style in being.
Diffstat (limited to 'src/being/localplayer.cpp')
-rw-r--r--src/being/localplayer.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/being/localplayer.cpp b/src/being/localplayer.cpp
index b7747464d..3813f5121 100644
--- a/src/being/localplayer.cpp
+++ b/src/being/localplayer.cpp
@@ -966,13 +966,13 @@ void LocalPlayer::handleStatusEffect(StatusEffect *const effect,
{
// replace sprite or append
bool found = false;
- const unsigned int sz = mStatusEffectIcons.size();
- for (unsigned int i = 0; i < sz; i++)
+ const size_t sz = mStatusEffectIcons.size();
+ for (size_t i = 0; i < sz; i++)
{
if (mStatusEffectIcons[i] == effectId)
{
if (miniStatusWindow)
- miniStatusWindow->setIcon(i, sprite);
+ miniStatusWindow->setIcon(static_cast<int>(i), sprite);
found = true;
break;
}
@@ -1167,7 +1167,7 @@ void LocalPlayer::moveToTarget(int dist)
mTarget->getTileX(), mTarget->getTileY(), getWalkMask(), 0);
}
- const unsigned int sz = debugPath.size();
+ const size_t sz = debugPath.size();
if (sz < static_cast<unsigned int>(dist))
return;
limit = static_cast<int>(sz) - dist;