diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-12-04 02:14:35 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-12-16 22:25:52 +0300 |
commit | 4ae220311093cb344a27052ebc90358748435be6 (patch) | |
tree | 505879ada6ff72de25fc58f8bf4808df3d7f470e /src/map/npc.c | |
parent | 058dabd69eb190f507e56747e5f25f68b935ec69 (diff) | |
download | hercules-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.
Diffstat (limited to 'src/map/npc.c')
-rw-r--r-- | src/map/npc.c | 2 |
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. |