summaryrefslogtreecommitdiff
path: root/src/resources/db/horsedb.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/horsedb.cpp
parent6e577446c8b561a4ce8fd2d74f43c36210e8a571 (diff)
downloadmanaplus-670264d93a362a3b987c6da62511ac49cd07b048.tar.gz
manaplus-670264d93a362a3b987c6da62511ac49cd07b048.tar.bz2
manaplus-670264d93a362a3b987c6da62511ac49cd07b048.tar.xz
manaplus-670264d93a362a3b987c6da62511ac49cd07b048.zip
Show asserts for most errors in resource dbs.
Diffstat (limited to 'src/resources/db/horsedb.cpp')
-rw-r--r--src/resources/db/horsedb.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/resources/db/horsedb.cpp b/src/resources/db/horsedb.cpp
index c43769bca..fc1fffca2 100644
--- a/src/resources/db/horsedb.cpp
+++ b/src/resources/db/horsedb.cpp
@@ -27,6 +27,7 @@
#include "resources/beingcommon.h"
#include "resources/horseinfo.h"
+#include "utils/checkutils.h"
#include "utils/dtor.h"
#include "debug.h"
@@ -119,7 +120,7 @@ void HorseDB::loadXmlFile(const std::string &fileName,
if (id == -1)
{
- logger->log("Horse Database: Horse with missing ID in %s!",
+ reportAlways("Horse Database: Horse with missing ID in %s!",
paths.getStringValue("horsesFile").c_str());
continue;
}
@@ -211,7 +212,8 @@ HorseInfo *HorseDB::get(const int id, const bool allowNull)
{
if (allowNull)
return nullptr;
- logger->log("HorseDB: Warning, unknown emote ID %d requested", id);
+ reportAlways("HorseDB: Warning, unknown horse ID %d requested",
+ id);
return &mUnknown;
}
else