X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Finventory.cpp;h=5e39a41a6bc42527351824d6b63c4fca99baaca4;hb=ab45133ab4826359ca9a5ed50b68150eb462c8ef;hp=fda11e40fde5e5904bc5cb42ae4d1b0f104af1c2;hpb=6a16075912d016926ee0361fb85f9979c119be52;p=oweals%2Fminetest.git diff --git a/src/inventory.cpp b/src/inventory.cpp index fda11e40f..5e39a41a6 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"); - } } }