From: Perttu Ahola Date: Tue, 4 Sep 2012 20:02:56 +0000 (+0300) Subject: Remove "Unknown inventory identifier" deserialization errors, because they can break... X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=60932d2bd76cbe006e297f36bc118b830ae969d3;p=zefram%2Fminetest%2Fminetest_engine.git Remove "Unknown inventory identifier" deserialization errors, because they can break forward compatibility --- diff --git a/src/inventory.cpp b/src/inventory.cpp index fda11e40..5e39a41a 100644 --- a/src/inventory.cpp +++ b/src/inventory.cpp @@ -542,10 +542,6 @@ void InventoryList::deSerialize(std::istream &is) throw SerializationError("too many items"); m_items[item_i++].clear(); } - else - { - throw SerializationError("Unknown inventory identifier"); - } } } @@ -907,10 +903,6 @@ void Inventory::deSerialize(std::istream &is) m_lists.push_back(list); } - else - { - throw SerializationError("Unknown inventory identifier"); - } } }