summaryrefslogtreecommitdiff
path: root/src/utils/itemxmlutils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/itemxmlutils.cpp')
-rw-r--r--src/utils/itemxmlutils.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/utils/itemxmlutils.cpp b/src/utils/itemxmlutils.cpp
index 2f849b8ce..5dc68b249 100644
--- a/src/utils/itemxmlutils.cpp
+++ b/src/utils/itemxmlutils.cpp
@@ -20,6 +20,7 @@
#include "utils/itemxmlutils.h"
+#include "utils/checkutils.h"
#include "utils/foreach.h"
#include "utils/stringutils.h"
#include "utils/translation/podict.h"
@@ -33,7 +34,10 @@ void readItemStatsString(std::string &effect,
const ItemFieldInfos &fields)
{
if (translator == nullptr)
+ {
+ reportAlways("called readItemStatsString without translator");
return;
+ }
FOR_EACH (ItemFieldInfos::const_iterator, it, fields)
{
@@ -60,7 +64,10 @@ void readItemStatsVector(STD_VECTOR<std::string> &effect,
const ItemFieldInfos &fields)
{
if (translator == nullptr)
+ {
+ reportAlways("called readItemStatsVector without translator");
return;
+ }
FOR_EACH (ItemFieldInfos::const_iterator, it, fields)
{