summaryrefslogtreecommitdiff
path: root/src/resources/db/npcdb.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-06-02 21:09:14 +0300
committerAndrei Karas <akaras@inbox.ru>2016-06-02 21:09:14 +0300
commit670264d93a362a3b987c6da62511ac49cd07b048 (patch)
tree8e7470b6f419965a4fe4464fe06dd9c117edce5a /src/resources/db/npcdb.cpp
parent6e577446c8b561a4ce8fd2d74f43c36210e8a571 (diff)
downloadplus-670264d93a362a3b987c6da62511ac49cd07b048.tar.gz
plus-670264d93a362a3b987c6da62511ac49cd07b048.tar.bz2
plus-670264d93a362a3b987c6da62511ac49cd07b048.tar.xz
plus-670264d93a362a3b987c6da62511ac49cd07b048.zip
Show asserts for most errors in resource dbs.
Diffstat (limited to 'src/resources/db/npcdb.cpp')
-rw-r--r--src/resources/db/npcdb.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/resources/db/npcdb.cpp b/src/resources/db/npcdb.cpp
index 6c63ee57f..cfde3495f 100644
--- a/src/resources/db/npcdb.cpp
+++ b/src/resources/db/npcdb.cpp
@@ -30,6 +30,7 @@
#include "resources/sprite/spritereference.h"
+#include "utils/checkutils.h"
#include "utils/dtor.h"
#include "utils/gettext.h"
@@ -88,7 +89,7 @@ void NPCDB::loadXmlFile(const std::string &fileName,
BeingInfo *currentInfo = nullptr;
if (id == BeingTypeId_zero)
{
- logger->log("NPC Database: NPC with missing ID in %s!",
+ reportAlways("NPC Database: NPC with missing ID in %s!",
paths.getStringValue("npcsFile").c_str());
continue;
}
@@ -172,7 +173,7 @@ BeingInfo *NPCDB::get(const BeingTypeId id)
if (i == mNPCInfos.end())
{
- logger->log("NPCDB: Warning, unknown NPC ID %d requested",
+ reportAlways("NPCDB: Warning, unknown NPC ID %d requested",
toInt(id, int));
return BeingInfo::unknown;
}