summaryrefslogtreecommitdiff
path: root/src/map/script.h
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2015-09-14 16:13:00 +0200
committerHaru <haru@dotalux.com>2015-11-14 21:13:02 +0100
commit1d064776214d3f962b9af585555cca686906665a (patch)
treec5884040cc4345e2364b46de4bf3d4d394f5077e /src/map/script.h
parentcd47c20adfcc1cdfe25fb09937dd175008d71f9f (diff)
downloadhercules-1d064776214d3f962b9af585555cca686906665a.tar.gz
hercules-1d064776214d3f962b9af585555cca686906665a.tar.bz2
hercules-1d064776214d3f962b9af585555cca686906665a.tar.xz
hercules-1d064776214d3f962b9af585555cca686906665a.zip
Changed struct script_queue_iterator::item into a VECTOR and Renamed to ::entries
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/script.h')
-rw-r--r--src/map/script.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/script.h b/src/map/script.h
index 6b728ab88..b153cf81a 100644
--- a/src/map/script.h
+++ b/src/map/script.h
@@ -410,9 +410,9 @@ struct script_queue {
* Iterator for a struct script_queue.
*/
struct script_queue_iterator {
- int *item; ///< Items in the queue (iterator's cached copy)
- int items; ///< Amount of elements in \c item
- int pos; ///< Iterator's cursor
+ VECTOR_DECL(int) entries; ///< Entries in the queue (iterator's cached copy)
+ bool valid; ///< Whether the queue is valid (initialized - not necessarily having entries available)
+ int pos; ///< Iterator's cursor
};
struct script_state {