From 2c0421a336789347664078383fad45c29b0a9d10 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 5 Jan 2011 21:18:01 +0200 Subject: Fix log errors about missing xml attributes. --- src/resources/itemdb.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/resources/itemdb.cpp') 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 &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, ""); -- cgit v1.2.3-70-g09d2