diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-09-04 23:47:11 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-09-04 23:47:11 +0300 |
commit | f24ddad3fa0f843eb29a281426151cf1a5f31f4b (patch) | |
tree | 6f3faaf38f069f1e88435b7c976ff4070b7a1dcb /src/being.cpp | |
parent | 3a407bb6b73a186eafd99bcec570f88097c4b2e1 (diff) | |
download | mv-f24ddad3fa0f843eb29a281426151cf1a5f31f4b.tar.gz mv-f24ddad3fa0f843eb29a281426151cf1a5f31f4b.tar.bz2 mv-f24ddad3fa0f843eb29a281426151cf1a5f31f4b.tar.xz mv-f24ddad3fa0f843eb29a281426151cf1a5f31f4b.zip |
add const to more classes,
fix other small style issues.
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 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); } |