summaryrefslogtreecommitdiff
path: root/src/map/script.c
diff options
context:
space:
mode:
authorLance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-04-30 03:18:14 +0000
committerLance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-04-30 03:18:14 +0000
commita1a3478455931be8155dafbbae3da19e40281a81 (patch)
tree14dfb5a016000b94a2f94a9130be5cc75086253c /src/map/script.c
parent876794dee5dd2be7e2062d7901a3c982ec37a951 (diff)
downloadhercules-a1a3478455931be8155dafbbae3da19e40281a81.tar.gz
hercules-a1a3478455931be8155dafbbae3da19e40281a81.tar.bz2
hercules-a1a3478455931be8155dafbbae3da19e40281a81.tar.xz
hercules-a1a3478455931be8155dafbbae3da19e40281a81.zip
Fixed typo in script.c
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6388 54d463be-8e91-2dee-dedb-b68131a5f0ec
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);
}
}