Skip to content
Snippets Groups Projects
Commit 33dd267f authored by Diego Martínez's avatar Diego Martínez Committed by kwolekr
Browse files

Fixes possible crash when using hud_change with "align" or "offset"

parent a699bdb7
No related branches found
No related tags found
No related merge requests found
......@@ -2097,7 +2097,8 @@ void Client::ProcessData(u8 *data, u32 datasize, u16 sender_peer_id)
u32 id = readU32(is);
u8 stat = (HudElementStat)readU8(is);
if (stat == HUD_STAT_POS || stat == HUD_STAT_SCALE)
if (stat == HUD_STAT_POS || stat == HUD_STAT_SCALE
|| stat == HUD_STAT_ALIGN || stat == HUD_STAT_OFFSET)
v2fdata = readV2F1000(is);
else if (stat == HUD_STAT_NAME || stat == HUD_STAT_TEXT)
sdata = deSerializeString(is);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment