Prevent infinite loop with invalid Inventory format
parent
a782a88913
commit
d01b74d00a
|
@ -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");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue