diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-07-29 06:57:09 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-07-29 07:01:58 +0300 |
commit | 4faa0adfc89047c78559627672bcc68eb2203f34 (patch) | |
tree | 03fa58f9b5c8313cc3cd6f6e46aa29d71d2a1fbe /src/emap/send.c | |
parent | a2cfcafecef9f709d1d66eb67a672b3873dcf5c8 (diff) | |
download | plugin-4faa0adfc89047c78559627672bcc68eb2203f34.tar.gz plugin-4faa0adfc89047c78559627672bcc68eb2203f34.tar.bz2 plugin-4faa0adfc89047c78559627672bcc68eb2203f34.tar.xz plugin-4faa0adfc89047c78559627672bcc68eb2203f34.zip |
Fix fake bl initialisation for clang.
Diffstat (limited to 'src/emap/send.c')
-rw-r--r-- | src/emap/send.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/emap/send.c b/src/emap/send.c index bf4b208..6d1e05e 100644 --- a/src/emap/send.c +++ b/src/emap/send.c @@ -141,9 +141,10 @@ void send_mapmask(int fd, int mask) void send_mapmask_brodcast(const int map, const int mask) { - struct block_list bl = {0}; + struct block_list bl; char buf[10]; + memset(&bl, 0, sizeof(bl)); bl.m = map; WBUFW (buf, 0) = 0xb02 + evolPacketOffset; WBUFL (buf, 2) = mask; @@ -304,10 +305,11 @@ void send_changemusic_brodcast(const int map, const char *music) if (!music) return; - struct block_list bl = {0}; + struct block_list bl; const int sz = (int)strlen(music) + 5; char *buf; + memset(&bl, 0, sizeof(bl)); CREATE(buf, char, sz); bl.m = map; WBUFW (buf, 0) = 0xb05 + evolPacketOffset; |