summaryrefslogtreecommitdiff
path: root/src/map/battle.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/battle.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/battle.c')
-rw-r--r--src/map/battle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/battle.c b/src/map/battle.c
index 6536e54c4..6a6924aa3 100644
--- a/src/map/battle.c
+++ b/src/map/battle.c
@@ -6689,7 +6689,7 @@ bool battle_check_range(struct block_list *src, struct block_list *bl, int range
if( d > AREA_SIZE )
return false; // Avoid targeting objects beyond your range of sight.
- return path->search_long(NULL,src->m,src->x,src->y,bl->x,bl->y,CELL_CHKWALL);
+ return path->search_long(NULL,src,src->m,src->x,src->y,bl->x,bl->y,CELL_CHKWALL);
}
static const struct battle_data {