From 670264d93a362a3b987c6da62511ac49cd07b048 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 2 Jun 2016 21:09:14 +0300 Subject: Show asserts for most errors in resource dbs. --- src/resources/db/npcdb.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/resources/db/npcdb.cpp') 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; } -- cgit v1.2.3-70-g09d2