diff options
-rw-r--r-- | src/map/script.c | 1 | ||||
-rw-r--r-- | src/map/script.h | 3 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/map/script.c b/src/map/script.c index a086c3f65..15b6fe788 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -17912,6 +17912,7 @@ void script_defaults(void) { script->addScript = script_hp_add; script->conv_num = conv_num; script->conv_str = conv_str; + script->rid2sd = script_rid2sd; script->queue = script_hqueue_get; script->queue_add = script_hqueue_add; diff --git a/src/map/script.h b/src/map/script.h index 83d6dd9ee..2e8dde5cf 100644 --- a/src/map/script.h +++ b/src/map/script.h @@ -214,8 +214,6 @@ int script_reload(void); // @commands (script based) void setd_sub(struct script_state *st, struct map_session_data *sd, const char *varname, int elem, void *value, struct DBMap **ref); -TBL_PC *script_rid2sd(struct script_state *st); - /////////////////////////////////////////////////////////////////////////////// //## TODO possible enhancements: [FlavioJS] // - 'callfunc' supporting labels in the current npc "::LabelName" @@ -339,6 +337,7 @@ struct script_interface { bool (*addScript) (char *name, char *args, bool (*func)(struct script_state *st)); int (*conv_num) (struct script_state *st,struct script_data *data); const char* (*conv_str) (struct script_state *st,struct script_data *data); + TBL_PC *(*rid2sd) (struct script_state *st); /* */ struct hQueue *(*queue) (int idx); bool (*queue_add) (int idx, int var); |