added temporary backwards compatibility to player inventory
authorPerttu Ahola <celeron55@gmail.com>
Thu, 3 Feb 2011 13:45:53 +0000 (15:45 +0200)
committerPerttu Ahola <celeron55@gmail.com>
Thu, 3 Feb 2011 13:45:53 +0000 (15:45 +0200)
src/inventory.cpp

index deaecae26823e385b1ec06e7a56e13c6889eb2b3..5030d67d1d54fb96b6e5a079552ff1d57aff5c0a 100644 (file)
@@ -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;