mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
extended content-type range
This commit is contained in:
parent
f706644a50
commit
90d793f8f3
27 changed files with 428 additions and 318 deletions
|
@ -61,7 +61,7 @@ InventoryItem* InventoryItem::deSerialize(std::istream &is)
|
|||
is>>material;
|
||||
u16 count;
|
||||
is>>count;
|
||||
if(material > 255)
|
||||
if(material > MAX_CONTENT)
|
||||
throw SerializationError("Too large material number");
|
||||
return new MaterialItem(material, count);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue