summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-12-04 02:14:35 +0300
committerAndrei Karas <akaras@inbox.ru>2014-12-16 22:25:52 +0300
commit4ae220311093cb344a27052ebc90358748435be6 (patch)
tree505879ada6ff72de25fc58f8bf4808df3d7f470e
parent058dabd69eb190f507e56747e5f25f68b935ec69 (diff)
downloadhercules-4ae220311093cb344a27052ebc90358748435be6.tar.gz
hercules-4ae220311093cb344a27052ebc90358748435be6.tar.bz2
hercules-4ae220311093cb344a27052ebc90358748435be6.tar.xz
hercules-4ae220311093cb344a27052ebc90358748435be6.zip
Fix script error termination if already running script continue from very far npc.
Note for Haruna: possible it may add side effects. Need check.
-rw-r--r--src/map/npc.c2
1 files changed, 1 insertions, 1 deletions
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.