summaryrefslogtreecommitdiff
path: root/src/map/script.c
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-06-13 08:51:01 -0300
committershennetsind <ind@henn.et>2013-06-13 08:51:01 -0300
commite5e28d108ebc656fcb8a39775b84e725ca4abbb9 (patch)
treeda2fe3a189864c012a7db162090ff471bfa42001 /src/map/script.c
parent7b6e280c5e35ac9e47f4d843178911496d81679c (diff)
downloadhercules-e5e28d108ebc656fcb8a39775b84e725ca4abbb9.tar.gz
hercules-e5e28d108ebc656fcb8a39775b84e725ca4abbb9.tar.bz2
hercules-e5e28d108ebc656fcb8a39775b84e725ca4abbb9.tar.xz
hercules-e5e28d108ebc656fcb8a39775b84e725ca4abbb9.zip
Script.c Interface : detach rid
Special Thanks to Shizaku for pointing it out! Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/script.c')
-rw-r--r--src/map/script.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/map/script.c b/src/map/script.c
index b414247da..bc5959003 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -10176,10 +10176,8 @@ BUILDIN(warpwaitingpc)
/// Detaches a character from a script.
///
/// @param st Script state to detach the character from.
-static void script_detach_rid(struct script_state* st)
-{
- if(st->rid)
- {
+void script_detach_rid(struct script_state* st) {
+ if(st->rid) {
script_detach_state(st, false);
st->rid = 0;
}
@@ -17864,6 +17862,7 @@ void script_defaults(void) {
script->conv_num = conv_num;
script->conv_str = conv_str;
script->rid2sd = script_rid2sd;
+ script->detach_rid = script_detach_rid;
script->push_val = push_val;
script->get_val = get_val;
script->get_val2 = get_val2;