projects
/
zefram
/
minetest
/
minetest_engine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ee2d9d9
)
Remove "Unknown inventory identifier" deserialization errors, because they can break...
author
Perttu Ahola
<celeron55@gmail.com>
Tue, 4 Sep 2012 20:02:56 +0000
(23:02 +0300)
committer
Perttu Ahola
<celeron55@gmail.com>
Tue, 4 Sep 2012 20:02:56 +0000
(23:02 +0300)
src/inventory.cpp
patch
|
blob
|
history
diff --git
a/src/inventory.cpp
b/src/inventory.cpp
index fda11e40fde5e5904bc5cb42ae4d1b0f104af1c2..5e39a41a6bc42527351824d6b63c4fca99baaca4 100644
(file)
--- 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");
- }
}
}