From 4ae220311093cb344a27052ebc90358748435be6 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 4 Dec 2014 02:14:35 +0300 Subject: Fix script error termination if already running script continue from very far npc. Note for Haruna: possible it may add side effects. Need check. --- src/map/npc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/map/npc.c b/src/map/npc.c index 9731250f3..c0e61e41f 100644 --- a/src/map/npc.c +++ b/src/map/npc.c @@ -1093,7 +1093,7 @@ struct npc_data* npc_checknear(struct map_session_data* sd, struct block_list* b if (bl->type != BL_NPC) return NULL; nd = (TBL_NPC*)bl; - if (sd->state.using_fake_npc && sd->npc_id == bl->id) + if (sd->npc_id == bl->id) return nd; if (nd->class_<0) //Class-less npc, enable click from anywhere. -- cgit v1.2.3-60-g2f50