From 7b9297cbaedad24cd6109394445ba46095e552ff Mon Sep 17 00:00:00 2001 From: shennetsind Date: Sun, 2 Jun 2013 15:13:19 -0300 Subject: Follow up 86e9900db60e06738880a57820125ca169c37520 Forgot about the Interface. Signed-off-by: shennetsind --- src/map/script.c | 1 + src/map/script.h | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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); -- cgit v1.2.3-70-g09d2