mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-14 00:55:20 +02:00
Fix out of range enum casts in deSerialize functions (#14090)
This commit is contained in:
@@ -41,12 +41,13 @@ struct ItemStack;
|
||||
Base item definition
|
||||
*/
|
||||
|
||||
enum ItemType
|
||||
enum ItemType : u8
|
||||
{
|
||||
ITEM_NONE,
|
||||
ITEM_NODE,
|
||||
ITEM_CRAFT,
|
||||
ITEM_TOOL,
|
||||
ItemType_END // Dummy for validity check
|
||||
};
|
||||
|
||||
struct ItemDefinition
|
||||
|
Reference in New Issue
Block a user