diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-09-24 15:32:41 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-09-24 15:33:09 +0300 |
commit | 7a867315dac6aaf78a4d61ea67174820a4d30c59 (patch) | |
tree | d08ace6759528a25ed9e124724309e4d0832dc1b /src/map/unit.c | |
parent | f94190251bc199582d819fefa448b32a662a297a (diff) | |
download | hercules-7a867315dac6aaf78a4d61ea67174820a4d30c59.tar.gz hercules-7a867315dac6aaf78a4d61ea67174820a4d30c59.tar.bz2 hercules-7a867315dac6aaf78a4d61ea67174820a4d30c59.tar.xz hercules-7a867315dac6aaf78a4d61ea67174820a4d30c59.zip |
Add bl parameter to closest_freecell.
Diffstat (limited to 'src/map/unit.c')
-rw-r--r-- | src/map/unit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/unit.c b/src/map/unit.c index 2d8776d53..04a8befc2 100644 --- a/src/map/unit.c +++ b/src/map/unit.c @@ -494,7 +494,7 @@ int unit_walktoxy( struct block_list *bl, short x, short y, int flag) if( ud == NULL) return 0; - if (battle_config.check_occupied_cells && (flag&8) && !map->closest_freecell(bl->m, &x, &y, BL_CHAR|BL_NPC, 1)) //This might change x and y + if (battle_config.check_occupied_cells && (flag&8) && !map->closest_freecell(bl->m, bl, &x, &y, BL_CHAR|BL_NPC, 1)) //This might change x and y return 0; if (!path->search(&wpd, bl, bl->m, bl->x, bl->y, x, y, flag&1, CELL_CHKNOPASS)) // Count walk path cells |