summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
Diffstat (limited to 'src/map')
-rw-r--r--src/map/script-fun.cpp12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/map/script-fun.cpp b/src/map/script-fun.cpp
index 0b1e7e6..90eb557 100644
--- a/src/map/script-fun.cpp
+++ b/src/map/script-fun.cpp
@@ -3222,17 +3222,10 @@ void builtin_resetstatus(ScriptState *st)
static
void builtin_attachrid(ScriptState *st)
{
- dumb_ptr<map_session_data> sd = map_id2sd(st->rid);
- BlockId newid = wrap<BlockId>(conv_num(st, &AARG(0)));
-
- if (sd && newid != st->rid)
- sd->npc_id = BlockId();
-
- st->rid = newid;
+ st->rid = wrap<BlockId>(conv_num(st, &AARG(0)));
push_int<ScriptDataInt>(st->stack, (map_id2sd(st->rid) != nullptr));
}
-
/*==========================================
* RIDのデタッチ
*------------------------------------------
@@ -3240,9 +3233,6 @@ void builtin_attachrid(ScriptState *st)
static
void builtin_detachrid(ScriptState *st)
{
- dumb_ptr<map_session_data> sd = map_id2sd(st->rid);
- if (sd)
- sd->npc_id = BlockId();
st->rid = BlockId();
}