summaryrefslogtreecommitdiff
path: root/src/resources/db/npcdialogdb.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/npcdialogdb.cpp
parent6e577446c8b561a4ce8fd2d74f43c36210e8a571 (diff)
downloadmv-670264d93a362a3b987c6da62511ac49cd07b048.tar.gz
mv-670264d93a362a3b987c6da62511ac49cd07b048.tar.bz2
mv-670264d93a362a3b987c6da62511ac49cd07b048.tar.xz
mv-670264d93a362a3b987c6da62511ac49cd07b048.zip
Show asserts for most errors in resource dbs.
Diffstat (limited to 'src/resources/db/npcdialogdb.cpp')
-rw-r--r--src/resources/db/npcdialogdb.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/resources/db/npcdialogdb.cpp b/src/resources/db/npcdialogdb.cpp
index 558a7e453..848721879 100644
--- a/src/resources/db/npcdialogdb.cpp
+++ b/src/resources/db/npcdialogdb.cpp
@@ -26,6 +26,7 @@
#include "resources/beingcommon.h"
#include "resources/npcdialoginfo.h"
+#include "utils/checkutils.h"
#include "utils/dtor.h"
#include "debug.h"
@@ -74,7 +75,7 @@ static void loadNpcDialogMenu(NpcDialogInfo *const dialog,
button->image = XML::getProperty(childNode, "image", "");
if (button->name.empty() && button->image.empty())
{
- logger->log("Error: npc button without name or image");
+ reportAlways("Error: npc button without name or image");
delete button;
continue;
}
@@ -89,7 +90,7 @@ static void loadNpcDialogMenu(NpcDialogInfo *const dialog,
const std::string image = XML::getProperty(childNode, "image", "");
if (image.empty())
{
- logger->log("Error: no image attribute found in image tag.");
+ reportAlways("Error: no image attribute found in image tag.");
continue;
}
NpcImageInfo *const imageInfo = new NpcImageInfo;
@@ -105,7 +106,7 @@ static void loadNpcDialogMenu(NpcDialogInfo *const dialog,
const std::string text = XML::getProperty(childNode, "text", "");
if (text.empty())
{
- logger->log("Error: no text attribute found in text tag.");
+ reportAlways("Error: no text attribute found in text tag.");
continue;
}
NpcTextInfo *const textInfo = new NpcTextInfo;