summaryrefslogtreecommitdiff
path: root/src/actorspritemanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-08-01 21:35:49 +0300
committerAndrei Karas <akaras@inbox.ru>2012-08-01 22:40:36 +0300
commitfc854786ed73fe768d6a3ca22c02f7013560a930 (patch)
tree3a12f555d194679957559760567ff8eb701b494b /src/actorspritemanager.cpp
parent09d74d9273cca445b7019edacaff53452a1eee3c (diff)
downloadManaVerse-fc854786ed73fe768d6a3ca22c02f7013560a930.tar.gz
ManaVerse-fc854786ed73fe768d6a3ca22c02f7013560a930.tar.bz2
ManaVerse-fc854786ed73fe768d6a3ca22c02f7013560a930.tar.xz
ManaVerse-fc854786ed73fe768d6a3ca22c02f7013560a930.zip
Fix code style.
Diffstat (limited to 'src/actorspritemanager.cpp')
-rw-r--r--src/actorspritemanager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/actorspritemanager.cpp b/src/actorspritemanager.cpp
index 9d933ad72..61ca20a79 100644
--- a/src/actorspritemanager.cpp
+++ b/src/actorspritemanager.cpp
@@ -655,7 +655,7 @@ bool ActorSpriteManager::pickUpNearest(int x, int y, int maxdist)
}
}
}
- if (closestItem && player_node && dist <= maxdist)
+ if (closestItem && dist <= maxdist)
return player_node->pickUp(closestItem);
return false;
@@ -1430,7 +1430,7 @@ void ActorSpriteManager::updatePlayerGuild()
void ActorSpriteManager::parseLevels(std::string levels)
{
levels += ", ";
- unsigned int f = 0;
+ size_t f = 0;
size_t pos = 0;
const std::string brkEnd = "), ";