summaryrefslogtreecommitdiff
path: root/src/map/script.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/script.c')
-rw-r--r--src/map/script.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/map/script.c b/src/map/script.c
index 99f8269f0..876f5627f 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -10915,8 +10915,9 @@ int run_script_main(struct script_state *st)
// Perfomance impact, use buildin_doevent instead for interactive item scripts.
/*if(bl->type == BL_PC){
clif_sendfakenpc(((TBL_PC *)bl),dummy_npc_id);
- } else */if(bl->type == BL_NPC){
- if(npc_checknear(((TBL_PC *)bl), bl->id))
+ } else */
+ if(bl->type == BL_NPC){
+ if(npc_checknear(((TBL_PC *)map_id2bl(st->rid)), bl->id))
clif_sendfakenpc(((struct map_session_data *)bl),st->oid);
}
}