From 1a914405660d6e11a04238ddaa533603325a5dec Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 29 Jul 2018 07:21:27 +0300 Subject: Set all fields to 0 in fake bl's. --- src/map/clif.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/map/clif.c') diff --git a/src/map/clif.c b/src/map/clif.c index cfbc3d252..092ffe2c7 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -6099,6 +6099,7 @@ static void clif_map_property_mapall(int mapid, enum map_property property) struct block_list bl; unsigned char buf[16]; + memset(&bl, 0, sizeof(bl)); bl.id = 0; bl.type = BL_NUL; bl.m = mapid; @@ -17243,7 +17244,7 @@ static void clif_bg_updatescore(int16 m) struct block_list bl; unsigned char buf[6]; - bl.id = 0; + memset(&bl, 0, sizeof(bl)); bl.type = BL_NUL; bl.m = m; -- cgit v1.2.3-60-g2f50