summaryrefslogtreecommitdiff
path: root/src/resources/itemdb.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources/itemdb.cpp')
-rw-r--r--src/resources/itemdb.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/resources/itemdb.cpp b/src/resources/itemdb.cpp
index 71b88d192..a590dcac1 100644
--- a/src/resources/itemdb.cpp
+++ b/src/resources/itemdb.cpp
@@ -69,7 +69,7 @@ void ItemDB::setStatsList(const std::list<ItemDB::Stat> &stats)
static ItemType itemTypeFromString(const std::string &name)
{
- if (name == "generic")
+ if (name == "generic" || name == "other")
{
return ITEM_UNUSABLE;
}
@@ -326,7 +326,7 @@ void ItemDB::load()
logger->log("ItemDB: Missing " #param " attribute for item %i!", \
id)
- if (id >= 0)
+ if (id >= 0 && typeStr != "other")
{
CHECK_PARAM(name, "");
CHECK_PARAM(description, "");