summaryrefslogtreecommitdiff
path: root/src/map/script.h
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2014-01-11 20:00:04 -0200
committershennetsind <ind@henn.et>2014-01-12 12:57:01 -0200
commit95f13f3420822111f928ba6079fbc2061bd38c5f (patch)
tree48fca0d7d99185c95734f9f992d225391cc05440 /src/map/script.h
parent65a55ea396c44e263481302f8016fcf8b0e47a70 (diff)
downloadhercules-95f13f3420822111f928ba6079fbc2061bd38c5f.tar.gz
hercules-95f13f3420822111f928ba6079fbc2061bd38c5f.tar.bz2
hercules-95f13f3420822111f928ba6079fbc2061bd38c5f.tar.xz
hercules-95f13f3420822111f928ba6079fbc2061bd38c5f.zip
Adjusted indexing of vars with index 0
Special Thanks to Haruna. Also fixed a compiler warning, thanks to ossi0110 Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/script.h')
-rw-r--r--src/map/script.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/map/script.h b/src/map/script.h
index 65e11d3ca..7a643fa3e 100644
--- a/src/map/script.h
+++ b/src/map/script.h
@@ -688,6 +688,7 @@ struct script_interface {
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);
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);
/* */
void (*reg_destroy_single) (struct map_session_data *sd, int64 reg, struct script_reg_state *data);
int (*reg_destroy) (DBKey key, DBData *data, va_list ap);