summaryrefslogtreecommitdiff
path: root/src/map/mob.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-09-10 19:12:45 +0300
committerAndrei Karas <akaras@inbox.ru>2015-09-10 19:23:17 +0300
commitdc45b9c29cfcf7c64f95dc9f81b1612dda68341d (patch)
tree194eb0b7f881d436cca129ece3c69bd75e68fc24 /src/map/mob.c
parentc76aa5f4843a521b1839875bf6c139f4658bd6d1 (diff)
downloadhercules-dc45b9c29cfcf7c64f95dc9f81b1612dda68341d.tar.gz
hercules-dc45b9c29cfcf7c64f95dc9f81b1612dda68341d.tar.bz2
hercules-dc45b9c29cfcf7c64f95dc9f81b1612dda68341d.tar.xz
hercules-dc45b9c29cfcf7c64f95dc9f81b1612dda68341d.zip
Add to path search functions source bl for plugins usage.
Diffstat (limited to 'src/map/mob.c')
-rw-r--r--src/map/mob.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/mob.c b/src/map/mob.c
index f64c7e582..8c5e398b7 100644
--- a/src/map/mob.c
+++ b/src/map/mob.c
@@ -1079,7 +1079,7 @@ int mob_ai_sub_hard_activesearch(struct block_list *bl,va_list ap)
) { //Pick closest target?
#ifdef ACTIVEPATHSEARCH
struct walkpath_data wpd;
- if (!path->search(&wpd, md->bl.m, md->bl.x, md->bl.y, bl->x, bl->y, 0, CELL_CHKNOPASS)) // Count walk path cells
+ if (!path->search(&wpd, &md->bl, md->bl.m, md->bl.x, md->bl.y, bl->x, bl->y, 0, CELL_CHKNOPASS)) // Count walk path cells
return 0;
//Standing monsters use range2, walking monsters use range3
if ((md->ud.walktimer == INVALID_TIMER && wpd.path_len > md->db->range2)