summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-12-07 18:47:55 +0300
committerAndrei Karas <akaras@inbox.ru>2014-12-16 22:44:20 +0300
commit3a0bded54bcc5390bf6cd4be9e53206e1bc9e5c2 (patch)
tree55e0658924aed6ed0ac73ca2d4d3391ce5e79fbe /src/map/clif.c
parent61d6c958d5a753904d32ef2057b50f426bb0f3b9 (diff)
downloadhercules-3a0bded54bcc5390bf6cd4be9e53206e1bc9e5c2.tar.gz
hercules-3a0bded54bcc5390bf6cd4be9e53206e1bc9e5c2.tar.bz2
hercules-3a0bded54bcc5390bf6cd4be9e53206e1bc9e5c2.tar.xz
hercules-3a0bded54bcc5390bf6cd4be9e53206e1bc9e5c2.zip
Add function what called if player leave npc area.
Diffstat (limited to 'src/map/clif.c')
-rw-r--r--src/map/clif.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index 173175260..3515bb806 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -9597,7 +9597,7 @@ void clif_parse_LoadEndAck(int fd,struct map_session_data *sd) {
if (map->getcell(sd->bl.m,sd->bl.x,sd->bl.y,CELL_CHKNPC))
npc->touch_areanpc(sd,sd->bl.m,sd->bl.x,sd->bl.y);
else
- sd->areanpc_id = 0;
+ npc->untouch_areanpc(sd, sd->bl.m, sd->bl.x, sd->bl.y);
/* it broke at some point (e.g. during a crash), so we make it visibly dead again. */
if( !sd->status.hp && !pc_isdead(sd) && status->isdead(&sd->bl) )