summaryrefslogtreecommitdiff
path: root/src/map/script.h
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2014-02-11 17:32:46 -0200
committershennetsind <ind@henn.et>2014-02-11 17:32:46 -0200
commit71bd22ac878663f1f0a3e7c605532fd8b6babfdb (patch)
treeec21b87b45a2621f575ae7d419040d47fd8e7025 /src/map/script.h
parent90a2c005e8ec14e4af480dcf2e0dbb5112debfde (diff)
downloadhercules-71bd22ac878663f1f0a3e7c605532fd8b6babfdb.tar.gz
hercules-71bd22ac878663f1f0a3e7c605532fd8b6babfdb.tar.bz2
hercules-71bd22ac878663f1f0a3e7c605532fd8b6babfdb.tar.xz
hercules-71bd22ac878663f1f0a3e7c605532fd8b6babfdb.zip
Fixed issue with referenced array operations
Did not affect write/read, except getarraysize and deletearray. Special Thanks to Haru! Signed-off-by: shennetsind <ind@henn.et>
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 872c5bc31..3835a130b 100644
--- a/src/map/script.h
+++ b/src/map/script.h
@@ -679,13 +679,13 @@ struct script_interface {
/**
* Array Handling
**/
- struct DBMap *(*array_src) (struct script_state *st, struct map_session_data *sd, const char *name);
+ struct DBMap *(*array_src) (struct script_state *st, struct map_session_data *sd, const char *name, struct DBMap **ref);
void (*array_update) (struct DBMap **src, int64 num, bool empty);
void (*array_delete) (struct DBMap *src, struct script_array *sa);
void (*array_remove_member) (struct DBMap *src, struct script_array *sa, unsigned int idx);
void (*array_add_member) (struct script_array *sa, unsigned int idx);
- unsigned int (*array_size) (struct script_state *st, struct map_session_data *sd, const char *name);
- unsigned int (*array_highest_key) (struct script_state *st, struct map_session_data *sd, const char *name);
+ unsigned int (*array_size) (struct script_state *st, struct map_session_data *sd, const char *name, struct DBMap** ref);
+ unsigned int (*array_highest_key) (struct script_state *st, struct map_session_data *sd, const char *name, struct DBMap** ref);
int (*array_free_db) (DBKey key, DBData *data, va_list ap);
void (*array_ensure_zero) (struct script_state *st, struct map_session_data *sd, int64 uid, struct DBMap** ref);
/* */