Ver Fonte

Fixed typo in script.c

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@6388 54d463be-8e91-2dee-dedb-b68131a5f0ec
Lance há 19 anos atrás
pai
commit
91ea6a4e09
1 ficheiros alterados com 3 adições e 2 exclusões
  1. 3 2
      src/map/script.c

+ 3 - 2
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);
 			}
 		}