From 63c4304fb3226b53550e9d413820ed3ff7340d08 Mon Sep 17 00:00:00 2001 From: Haru Date: Fri, 19 Feb 2016 18:03:22 +0100 Subject: Changed script->get_val to return a const pointer Signed-off-by: Haru --- src/map/script.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/map/script.h') 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); -- cgit v1.2.3-60-g2f50