summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-07-29 07:21:27 +0300
committerAndrei Karas <akaras@inbox.ru>2018-07-29 07:21:27 +0300
commit1a914405660d6e11a04238ddaa533603325a5dec (patch)
treeb408be3d8cbfc697f5b8edbfbbfcc327ff3c0001 /src/map/clif.c
parentb30f62468a5e923bf5d9533adec064ada1716459 (diff)
downloadhercules-1a914405660d6e11a04238ddaa533603325a5dec.tar.gz
hercules-1a914405660d6e11a04238ddaa533603325a5dec.tar.bz2
hercules-1a914405660d6e11a04238ddaa533603325a5dec.tar.xz
hercules-1a914405660d6e11a04238ddaa533603325a5dec.zip
Set all fields to 0 in fake bl's.
Diffstat (limited to 'src/map/clif.c')
-rw-r--r--src/map/clif.c3
1 files changed, 2 insertions, 1 deletions
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;