summaryrefslogtreecommitdiff
path: root/src/map/map.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/map.c')
-rw-r--r--src/map/map.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/map.c b/src/map/map.c
index 156ae7b1c..55b7996a4 100644
--- a/src/map/map.c
+++ b/src/map/map.c
@@ -1412,7 +1412,7 @@ int map_search_freecell(struct block_list *src, int m, int *x,int *y, int rx, in
if (map_getcell(m,*x,*y,CELL_CHKREACH))
{
- if(flag&2 && !unit_can_reach(src, *x, *y))
+ if(flag&2 && !unit_can_reach_pos(src, *x, *y, 1))
continue;
if(flag&4 && spawn++ < battle_config.no_spawn_on_player &&
map_foreachinarea(map_count_sub, m,