mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Fix out of range enum casts in deSerialize functions (#14090)
This commit is contained in:
parent
0383c44f0d
commit
2ea8d9ca11
15 changed files with 138 additions and 77 deletions
|
@ -70,7 +70,7 @@ enum HudElementType {
|
|||
HUD_ELEM_MINIMAP = 7
|
||||
};
|
||||
|
||||
enum HudElementStat {
|
||||
enum HudElementStat : u8 {
|
||||
HUD_STAT_POS = 0,
|
||||
HUD_STAT_NAME,
|
||||
HUD_STAT_SCALE,
|
||||
|
@ -85,6 +85,7 @@ enum HudElementStat {
|
|||
HUD_STAT_Z_INDEX,
|
||||
HUD_STAT_TEXT2,
|
||||
HUD_STAT_STYLE,
|
||||
HudElementStat_END // Dummy for validity check
|
||||
};
|
||||
|
||||
enum HudCompassDir {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue