diff options
author | Diego MartÃnez <kaeza@users.sf.net> | 2013-04-23 05:06:24 -0300 |
---|---|---|
committer | kwolekr <kwolekr@minetest.net> | 2013-04-23 23:18:05 -0400 |
commit | 33dd267fd9da1a89b44cd6eab590aadab0f4e335 (patch) | |
tree | c8518b7202fde1d87f371b550b38aba695b83340 /src | |
parent | a699bdb7a11661778da0b45abd6a74c26b9e2237 (diff) | |
download | minetest-33dd267fd9da1a89b44cd6eab590aadab0f4e335.tar.gz minetest-33dd267fd9da1a89b44cd6eab590aadab0f4e335.tar.bz2 minetest-33dd267fd9da1a89b44cd6eab590aadab0f4e335.zip |
Fixes possible crash when using hud_change with "align" or "offset"
Diffstat (limited to 'src')
-rw-r--r-- | src/client.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client.cpp b/src/client.cpp index bd72737fc..12ced17fe 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -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); |