diff options
author | Perttu Ahola <celeron55@gmail.com> | 2012-09-04 23:02:56 +0300 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2012-09-04 23:02:56 +0300 |
commit | 60932d2bd76cbe006e297f36bc118b830ae969d3 (patch) | |
tree | caf135655cd94f047596e3dbcb3dbe4471cc6f3b /src/inventory.cpp | |
parent | ee2d9d973a0397ce244f05d49083250956578780 (diff) | |
download | minetest-60932d2bd76cbe006e297f36bc118b830ae969d3.tar.gz minetest-60932d2bd76cbe006e297f36bc118b830ae969d3.tar.bz2 minetest-60932d2bd76cbe006e297f36bc118b830ae969d3.zip |
Remove "Unknown inventory identifier" deserialization errors, because they can break forward compatibility
Diffstat (limited to 'src/inventory.cpp')
-rw-r--r-- | src/inventory.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
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"); - } } } |