projects
/
zefram
/
minetest
/
minetest_engine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a699bdb
)
Fixes possible crash when using hud_change with "align" or "offset"
author
Diego MartÃnez
<kaeza@users.sf.net>
Tue, 23 Apr 2013 08:06:24 +0000
(
05:06
-0300)
committer
kwolekr
<kwolekr@minetest.net>
Wed, 24 Apr 2013 03:18:05 +0000
(23:18 -0400)
src/client.cpp
patch
|
blob
|
history
diff --git
a/src/client.cpp
b/src/client.cpp
index bd72737fcfecb99eabd5aa45cfdebeb82d7e205c..12ced17fe4f74ca3503608719b6dc35a0ac2c42a 100644
(file)
--- 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);