summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-06-27 21:05:34 -0300
committershennetsind <ind@henn.et>2013-06-27 21:05:34 -0300
commit2154c0fa9cee582a36f9a8d7923a646a6d47adf0 (patch)
tree89e0f9be6b3bc7c3ebc135fc311d9f6d6ebbfeec /src
parentc02aa12ef651b47a4f866568558538335d10b8f0 (diff)
downloadhercules-2154c0fa9cee582a36f9a8d7923a646a6d47adf0.tar.gz
hercules-2154c0fa9cee582a36f9a8d7923a646a6d47adf0.tar.bz2
hercules-2154c0fa9cee582a36f9a8d7923a646a6d47adf0.tar.xz
hercules-2154c0fa9cee582a36f9a8d7923a646a6d47adf0.zip
Fixed Bug #7439
Special Thanks to Wend. http://hercules.ws/board/tracker/issue-7439-queue-system-error/ Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src')
-rw-r--r--src/map/script.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/map/script.c b/src/map/script.c
index f014aab7e..4ceb32991 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -17251,11 +17251,12 @@ BUILDIN(queueiterator) {
}
}
- if( i == script->hqis )
+ if( i == script->hqis ) {
RECREATE(script->hqi, struct hQueueIterator, ++script->hqis);
- else
+ script->hqi[ idx ].item = NULL;
+ } else
idx = i;
-
+
RECREATE(script->hqi[ idx ].item, int, queue->items);
memcpy(&script->hqi[idx].item, &queue->item, sizeof(int)*queue->items);