From: Perttu Ahola Date: Thu, 3 Feb 2011 13:45:53 +0000 (+0200) Subject: added temporary backwards compatibility to player inventory X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=44ce9018dd393ce0c8dad6ae40d26d8c5c656529;p=zefram%2Fminetest%2Fminetest_engine.git added temporary backwards compatibility to player inventory --- diff --git a/src/inventory.cpp b/src/inventory.cpp index deaecae2..5030d67d 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;