diff options
author | Haru <haru@dotalux.com> | 2015-09-14 15:54:28 +0200 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2015-11-14 21:12:13 +0100 |
commit | b03ff432644773890f7d4f48f2e2becb34dcd4d1 (patch) | |
tree | 4039224d1b113d30bfb48503a670ebe370d53d13 /src/map/clif.c | |
parent | 367c806bccbf242c2025356777b4cf1d194c481a (diff) | |
download | hercules-b03ff432644773890f7d4f48f2e2becb34dcd4d1.tar.gz hercules-b03ff432644773890f7d4f48f2e2becb34dcd4d1.tar.bz2 hercules-b03ff432644773890f7d4f48f2e2becb34dcd4d1.tar.xz hercules-b03ff432644773890f7d4f48f2e2becb34dcd4d1.zip |
Changed struct script_queue::item into a VECTOR and Renamed to ::entries
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/clif.c')
-rw-r--r-- | src/map/clif.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/clif.c b/src/map/clif.c index 2b9ed43c6..621f0b44a 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -612,10 +612,10 @@ bool clif_send(const void* buf, int len, struct block_list* bl, enum send_target if( sd && sd->bg_queue.arena ) { struct script_queue *queue = script->queue(sd->bg_queue.arena->queue_id); - for( i = 0; i < queue->size; i++ ) { - struct map_session_data *qsd = NULL; + for (i = 0; i < VECTOR_LENGTH(queue->entries); i++) { + struct map_session_data *qsd = map->id2sd(VECTOR_INDEX(queue->entries, i)); - if (queue->item[i] > 0 && (qsd = map->id2sd(queue->item[i])) != NULL) { + if (qsd != NULL) { WFIFOHEAD(qsd->fd,len); memcpy(WFIFOP(qsd->fd,0), buf, len); WFIFOSET(qsd->fd,len); |