summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/resources/itemdb.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/resources/itemdb.cpp b/src/resources/itemdb.cpp
index 2eff514c..2b94bd61 100644
--- a/src/resources/itemdb.cpp
+++ b/src/resources/itemdb.cpp
@@ -145,9 +145,12 @@ void ItemDB::load()
if (param == error_value) \
logger->log("ItemDB: Missing " #param " attribute for item %i!",id)
- CHECK_PARAM(name, "");
+ if (id >= 0)
+ {
+ CHECK_PARAM(name, "");
+ CHECK_PARAM(description, "");
+ }
CHECK_PARAM(image, "");
- CHECK_PARAM(description, "");
// CHECK_PARAM(effect, "");
// CHECK_PARAM(type, 0);
// CHECK_PARAM(weight, 0);