From a1a3478455931be8155dafbbae3da19e40281a81 Mon Sep 17 00:00:00 2001 From: Lance Date: Sun, 30 Apr 2006 03:18:14 +0000 Subject: Fixed typo in script.c git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6388 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/script.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/map') 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); } } -- cgit v1.2.3-70-g09d2