diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-04-16 14:52:20 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-04-16 14:55:28 +0300 |
commit | cc8f48938d98f71ac738b4f08db81242eab75407 (patch) | |
tree | acf373a335be1b80b9e847ddd7da8ec7b32c4166 | |
parent | 831d396c2911badff986f6836679039de3e1b6f2 (diff) | |
download | manaverse-cc8f48938d98f71ac738b4f08db81242eab75407.tar.gz manaverse-cc8f48938d98f71ac738b4f08db81242eab75407.tar.bz2 manaverse-cc8f48938d98f71ac738b4f08db81242eab75407.tar.xz manaverse-cc8f48938d98f71ac738b4f08db81242eab75407.zip |
improve monsterdb class.
-rw-r--r-- | src/resources/monsterdb.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/resources/monsterdb.cpp b/src/resources/monsterdb.cpp index 793fd4d0d..2fe6596b0 100644 --- a/src/resources/monsterdb.cpp +++ b/src/resources/monsterdb.cpp @@ -55,7 +55,7 @@ void MonsterDB::load() if (!rootNode || !xmlNameEqual(rootNode, "monsters")) { - logger->log("Monster Database: Error while loading monster.xml!"); + logger->log1("Monster Database: Error while loading monster.xml!"); mLoaded = true; return; } @@ -145,7 +145,8 @@ void MonsterDB::load() if (!spriteNode->xmlChildrenNode) continue; - std::string event = XML::getProperty(spriteNode, "event", ""); + const std::string event = XML::getProperty( + spriteNode, "event", ""); const char *filename; filename = reinterpret_cast<const char*>( spriteNode->xmlChildrenNode->content); @@ -246,7 +247,7 @@ BeingInfo *MonsterDB::get(const int id) if (i == mMonsterInfos.end()) { - i = mMonsterInfos.find(id + /*1002*/ OLD_TMWATHENA_OFFSET); + i = mMonsterInfos.find(id + OLD_TMWATHENA_OFFSET); if (i == mMonsterInfos.end()) { logger->log("MonsterDB: Warning, unknown monster ID %d requested", |