summaryrefslogtreecommitdiff
path: root/src/being.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-09-04 23:47:11 +0300
committerAndrei Karas <akaras@inbox.ru>2012-09-04 23:47:11 +0300
commitf24ddad3fa0f843eb29a281426151cf1a5f31f4b (patch)
tree6f3faaf38f069f1e88435b7c976ff4070b7a1dcb /src/being.cpp
parent3a407bb6b73a186eafd99bcec570f88097c4b2e1 (diff)
downloadmanaplus-f24ddad3fa0f843eb29a281426151cf1a5f31f4b.tar.gz
manaplus-f24ddad3fa0f843eb29a281426151cf1a5f31f4b.tar.bz2
manaplus-f24ddad3fa0f843eb29a281426151cf1a5f31f4b.tar.xz
manaplus-f24ddad3fa0f843eb29a281426151cf1a5f31f4b.zip
add const to more classes,
fix other small style issues.
Diffstat (limited to 'src/being.cpp')
-rw-r--r--src/being.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/being.cpp b/src/being.cpp
index ce6ec1a0e..4ca664dc6 100644
--- a/src/being.cpp
+++ b/src/being.cpp
@@ -2267,7 +2267,7 @@ void Being::recalcSpritesOrder()
mSpriteHide[remSprite] = repIt->second;
if (repIt->second != 1)
{
- if (remSprite != hairSlot)
+ if ((unsigned)remSprite != hairSlot)
{
setSprite(remSprite, repIt->second,
mSpriteColors[remSprite],
@@ -2558,7 +2558,7 @@ std::string Being::loadComment(const std::string &name, const int type)
logger->log("load from: %s", str.c_str());
StringVect lines;
- ResourceManager *const resman = ResourceManager::getInstance();
+ const ResourceManager *const resman = ResourceManager::getInstance();
if (resman->existsLocal(str))
{
lines = resman->loadTextFileLocal(str);
@@ -2584,7 +2584,7 @@ void Being::saveComment(const std::string &name,
return;
}
dir += stringToHexPath(name);
- ResourceManager *const resman = ResourceManager::getInstance();
+ const ResourceManager *const resman = ResourceManager::getInstance();
resman->saveTextFile(dir, "comment.txt", name + "\n" + comment);
}