summaryrefslogtreecommitdiff
path: root/src/map/script.h
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2016-02-19 18:03:22 +0100
committerHaru <haru@dotalux.com>2016-03-20 18:32:06 +0100
commit63c4304fb3226b53550e9d413820ed3ff7340d08 (patch)
tree8760177c12b833ff5ae18dca2cd58afe9a12a07e /src/map/script.h
parent3ce598dc1ef86c5fe319536a999246a49c3406bc (diff)
downloadhercules-63c4304fb3226b53550e9d413820ed3ff7340d08.tar.gz
hercules-63c4304fb3226b53550e9d413820ed3ff7340d08.tar.bz2
hercules-63c4304fb3226b53550e9d413820ed3ff7340d08.tar.xz
hercules-63c4304fb3226b53550e9d413820ed3ff7340d08.zip
Changed script->get_val to return a const pointer
Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/script.h')
-rw-r--r--src/map/script.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/script.h b/src/map/script.h
index fffe1fb1c..b12c84f96 100644
--- a/src/map/script.h
+++ b/src/map/script.h
@@ -660,7 +660,7 @@ struct script_interface {
int (*get_val_scope_num) (struct script_state* st, struct reg_db *n, struct script_data* data);
int (*get_val_npc_num) (struct script_state* st, struct reg_db *n, struct script_data* data);
int (*get_val_instance_num) (struct script_state* st, const char* name, struct script_data* data);
- void* (*get_val2) (struct script_state* st, int64 uid, struct reg_db *ref);
+ const void *(*get_val2) (struct script_state *st, int64 uid, struct reg_db *ref);
struct script_data* (*push_str) (struct script_stack* stack, enum c_op type, char* str);
struct script_data* (*push_copy) (struct script_stack* stack, int pos);
void (*pop_stack) (struct script_state* st, int start, int end);