From cc8f48938d98f71ac738b4f08db81242eab75407 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 16 Apr 2013 14:52:20 +0300 Subject: improve monsterdb class. --- src/resources/monsterdb.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/resources/monsterdb.cpp') 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( 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", -- cgit v1.2.3-70-g09d2