diff options
author | Haru <haru@dotalux.com> | 2018-11-16 17:46:23 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-16 17:46:23 +0100 |
commit | 283d34b2e821097badee727564396d94c266aa96 (patch) | |
tree | c18c7ecd98d311e81d20b9cfc844af90c8ef9b8d /src/map/clif.c | |
parent | 1db2ef52d603e9944a912fcf350706a7a44202c9 (diff) | |
parent | 61016983c4eb29dc4a76050fa8920c6bcdc0a1fd (diff) | |
download | hercules-283d34b2e821097badee727564396d94c266aa96.tar.gz hercules-283d34b2e821097badee727564396d94c266aa96.tar.bz2 hercules-283d34b2e821097badee727564396d94c266aa96.tar.xz hercules-283d34b2e821097badee727564396d94c266aa96.zip |
Merge pull request #2322 from MishimaHaruna/fix-allychat-leaveguild
Fix allychat leaveguild
Diffstat (limited to 'src/map/clif.c')
-rw-r--r-- | src/map/clif.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/clif.c b/src/map/clif.c index ebf667af0..7d539b3cd 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -11089,8 +11089,8 @@ static void clif_parse_WisMessage(int fd, struct map_session_data *sd) if (chan) { int k; - ARR_FIND(0, sd->channel_count, k, sd->channels[k] == chan); - if (k < sd->channel_count || channel->join(chan, sd, "", true) == HCS_STATUS_OK) { + ARR_FIND(0, VECTOR_LENGTH(sd->channels), k, VECTOR_INDEX(sd->channels, k) == chan); + if (k < VECTOR_LENGTH(sd->channels) || channel->join(chan, sd, "", true) == HCS_STATUS_OK) { channel->send(chan,sd,message); } else { clif->message(fd, msg_fd(fd,1402)); //You're not in that channel, type '@join <#channel_name>' |