diff options
author | Haru <haru@dotalux.com> | 2015-09-14 17:18:03 +0200 |
---|---|---|
committer | Haru <haru@dotalux.com> | 2015-11-14 17:55:17 +0100 |
commit | 71e868683b766633952e501a9cecf705bdc3e334 (patch) | |
tree | 3aea3fb052b93941a0e623d9de7b20210cfcd478 /src/map/clif.c | |
parent | e29a4597121e047c98cd6e75cfd365794c4b67a4 (diff) | |
download | hercules-71e868683b766633952e501a9cecf705bdc3e334.tar.gz hercules-71e868683b766633952e501a9cecf705bdc3e334.tar.bz2 hercules-71e868683b766633952e501a9cecf705bdc3e334.tar.xz hercules-71e868683b766633952e501a9cecf705bdc3e334.zip |
Fixed some direct accesses to script->hq[] from other modules.
- script->hq[] should only be accessed through the provided interface,
script->queue().
Signed-off-by: Haru <haru@dotalux.com>
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 80703fa12..bc4313f46 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -610,7 +610,7 @@ bool clif_send(const void* buf, int len, struct block_list* bl, enum send_target case BG_QUEUE: if( sd && sd->bg_queue.arena ) { - struct hQueue *queue = &script->hq[sd->bg_queue.arena->queue_id]; + struct hQueue *queue = script->queue(sd->bg_queue.arena->queue_id); for( i = 0; i < queue->size; i++ ) { struct map_session_data *qsd = NULL; |