diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-02-08 22:39:28 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-02-08 22:41:48 +0300 |
commit | da1b096806c868b1e9f4a82b88d05a6b032c1a63 (patch) | |
tree | 848f3e978f1c89ee2ac2b9ce12562741f84c8938 /src/map/clif.c | |
parent | 19c94017a31d86f7848085162ffb741770975128 (diff) | |
download | hercules-da1b096806c868b1e9f4a82b88d05a6b032c1a63.tar.gz hercules-da1b096806c868b1e9f4a82b88d05a6b032c1a63.tar.bz2 hercules-da1b096806c868b1e9f4a82b88d05a6b032c1a63.tar.xz hercules-da1b096806c868b1e9f4a82b88d05a6b032c1a63.zip |
Fix different clan issues.
Add missing online check for clan members.
Clean sd pointer after clan member went offline.
Diffstat (limited to 'src/map/clif.c')
-rw-r--r-- | src/map/clif.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/clif.c b/src/map/clif.c index 8adb1ae58..ea239ba21 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -673,7 +673,7 @@ bool clif_send(const void* buf, int len, struct block_list* bl, enum send_target nullpo_retr(false, c); for (i = 0; i < VECTOR_LENGTH(c->members); i++) { - if ((sd = VECTOR_INDEX(c->members, i).sd) == NULL || (fd = sd->fd) <= 0) + if (VECTOR_INDEX(c->members, i).online == 0 || (sd = VECTOR_INDEX(c->members, i).sd) == NULL || (fd = sd->fd) <= 0) continue; WFIFOHEAD(fd, len); memcpy(WFIFOP(fd, 0), buf, len); |