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:
71dbee4
)
added temporary backwards compatibility to player inventory
author
Perttu Ahola
<celeron55@gmail.com>
Thu, 3 Feb 2011 13:45:53 +0000
(15:45 +0200)
committer
Perttu Ahola
<celeron55@gmail.com>
Thu, 3 Feb 2011 13:45:53 +0000
(15:45 +0200)
src/inventory.cpp
patch
|
blob
|
history
diff --git
a/src/inventory.cpp
b/src/inventory.cpp
index deaecae26823e385b1ec06e7a56e13c6889eb2b3..5030d67d1d54fb96b6e5a079552ff1d57aff5c0a 100644
(file)
--- a/
src/inventory.cpp
+++ b/
src/inventory.cpp
@@
-242,6
+242,11
@@
void InventoryList::deSerialize(std::istream &is)
{
break;
}
+ // This is a temporary backwards compatibility fix
+ else if(name == "end")
+ {
+ break;
+ }
else if(name == "Item")
{
if(item_i > getSize() - 1)
@@
-518,6
+523,11
@@
void Inventory::deSerialize(std::istream &is)
{
break;
}
+ // This is a temporary backwards compatibility fix
+ else if(name == "end")
+ {
+ break;
+ }
else if(name == "List")
{
std::string listname;