diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-06-02 21:09:14 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-06-02 21:09:14 +0300 |
commit | 670264d93a362a3b987c6da62511ac49cd07b048 (patch) | |
tree | 8e7470b6f419965a4fe4464fe06dd9c117edce5a /src/resources/db/skillunitdb.cpp | |
parent | 6e577446c8b561a4ce8fd2d74f43c36210e8a571 (diff) | |
download | manaverse-670264d93a362a3b987c6da62511ac49cd07b048.tar.gz manaverse-670264d93a362a3b987c6da62511ac49cd07b048.tar.bz2 manaverse-670264d93a362a3b987c6da62511ac49cd07b048.tar.xz manaverse-670264d93a362a3b987c6da62511ac49cd07b048.zip |
Show asserts for most errors in resource dbs.
Diffstat (limited to 'src/resources/db/skillunitdb.cpp')
-rw-r--r-- | src/resources/db/skillunitdb.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/resources/db/skillunitdb.cpp b/src/resources/db/skillunitdb.cpp index 2444aa902..30f088331 100644 --- a/src/resources/db/skillunitdb.cpp +++ b/src/resources/db/skillunitdb.cpp @@ -30,6 +30,7 @@ #include "resources/sprite/spritereference.h" +#include "utils/checkutils.h" #include "utils/dtor.h" #include "utils/gettext.h" @@ -86,7 +87,7 @@ void SkillUnitDb::loadXmlFile(const std::string &fileName, skillUnitNode, "id", -1), BeingTypeId); if (id == BeingTypeId_negOne) { - logger->log("SkillUnitDb: skill unit with missing ID in %s!", + reportAlways("SkillUnitDb: skill unit with missing ID in %s!", paths.getStringValue("skillUnitsFile").c_str()); continue; } @@ -150,7 +151,8 @@ BeingInfo *SkillUnitDb::get(const BeingTypeId id) if (i == mSkillUnitInfos.end()) { - logger->log("SkillUnitDb: Warning, unknown skill unit id %d requested", + reportAlways("SkillUnitDb: Warning, unknown skill unit id " + "%d requested", toInt(id, int)); return BeingInfo::unknown; } |