aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-02-03 15:45:53 +0200
committerPerttu Ahola <celeron55@gmail.com>2011-02-03 15:45:53 +0200
commit44ce9018dd393ce0c8dad6ae40d26d8c5c656529 (patch)
tree9bca5e5a32e5930953ae22af455edd5d452b05e0 /src
parent71dbee43d005ce39fa17834cc34fe4233945e24f (diff)
downloadminetest-44ce9018dd393ce0c8dad6ae40d26d8c5c656529.tar.gz
minetest-44ce9018dd393ce0c8dad6ae40d26d8c5c656529.tar.bz2
minetest-44ce9018dd393ce0c8dad6ae40d26d8c5c656529.zip
added temporary backwards compatibility to player inventory
Diffstat (limited to 'src')
-rw-r--r--src/inventory.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/inventory.cpp b/src/inventory.cpp
index deaecae26..5030d67d1 100644
--- 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;