summaryrefslogtreecommitdiff
path: root/src/map/map.c
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-06-28 18:45:38 -0300
committershennetsind <ind@henn.et>2013-06-28 18:45:38 -0300
commit918b1123963ac2f91a4d074b092ceef1db71b4e8 (patch)
tree15eda3833d2fab779b02ef22573c21812b1c3aec /src/map/map.c
parent203e44e51c8cb133bf3fb20b372d16ea92be7667 (diff)
downloadhercules-918b1123963ac2f91a4d074b092ceef1db71b4e8.tar.gz
hercules-918b1123963ac2f91a4d074b092ceef1db71b4e8.tar.bz2
hercules-918b1123963ac2f91a4d074b092ceef1db71b4e8.tar.xz
hercules-918b1123963ac2f91a4d074b092ceef1db71b4e8.zip
BG Queue Testing
http://hercules.ws/board/topic/1302-bg-queue-debug/ Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/map.c')
-rw-r--r--src/map/map.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/map/map.c b/src/map/map.c
index ee56f140f..99f585a8d 100644
--- a/src/map/map.c
+++ b/src/map/map.c
@@ -1657,7 +1657,8 @@ int map_quit(struct map_session_data *sd) {
}
/* two times, the npc event above may assign a new one or delete others */
for( i = 0; i < sd->queues_count; i++ ) {
- script->queue_remove(sd->queues[i],sd->status.account_id);
+ if( sd->queues[i] != -1 )
+ script->queue_remove(sd->queues[i],sd->status.account_id);
}
npc_script_event(sd, NPCE_LOGOUT);