Prevent infinite loop with invalid Inventory format

master
kwolekr 2013-03-27 23:27:16 -04:00
parent a782a88913
commit d01b74d00a
1 changed files with 4 additions and 0 deletions

View File

@ -903,6 +903,10 @@ void Inventory::deSerialize(std::istream &is)
m_lists.push_back(list); m_lists.push_back(list);
} }
else
{
throw SerializationError("invalid inventory specifier");
}
} }
} }