summaryrefslogtreecommitdiff
path: root/src/resources
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources')
-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 cc70e33b7..33978192f 100644
--- a/src/resources/itemdb.cpp
+++ b/src/resources/itemdb.cpp
@@ -67,7 +67,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;
}
@@ -298,7 +298,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, "");