added temporary backwards compatibility to player inventory

master
Perttu Ahola 2011-02-03 15:45:53 +02:00
parent 71dbee43d0
commit 44ce9018dd
1 changed files with 10 additions and 0 deletions

View File

@ -242,6 +242,11 @@ void InventoryList::deSerialize(std::istream &is)
{ {
break; break;
} }
// This is a temporary backwards compatibility fix
else if(name == "end")
{
break;
}
else if(name == "Item") else if(name == "Item")
{ {
if(item_i > getSize() - 1) if(item_i > getSize() - 1)
@ -518,6 +523,11 @@ void Inventory::deSerialize(std::istream &is)
{ {
break; break;
} }
// This is a temporary backwards compatibility fix
else if(name == "end")
{
break;
}
else if(name == "List") else if(name == "List")
{ {
std::string listname; std::string listname;