summaryrefslogtreecommitdiff
path: root/src/map/map.c
diff options
context:
space:
mode:
authorgumi <git@gumi.ca>2018-11-26 12:19:41 -0500
committergumi <git@gumi.ca>2018-11-26 12:19:56 -0500
commit41d370cd3308be48b4ce00a50ee46515742978b0 (patch)
tree05cb52a0218765648b8b244e3b299ca99e5aca9b /src/map/map.c
parent97606eaf71983a82463062b04c2ec1cf5b078d57 (diff)
downloadhercules-41d370cd3308be48b4ce00a50ee46515742978b0.tar.gz
hercules-41d370cd3308be48b4ce00a50ee46515742978b0.tar.bz2
hercules-41d370cd3308be48b4ce00a50ee46515742978b0.tar.xz
hercules-41d370cd3308be48b4ce00a50ee46515742978b0.zip
fix map_forcountinmap using block size rather than cell size
closes #2330
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 d4d6e3323..93e86f80b 100644
--- a/src/map/map.c
+++ b/src/map/map.c
@@ -641,7 +641,7 @@ static int map_forcountinmap(int (*func)(struct block_list*, va_list), int16 m,
va_list ap;
va_start(ap, type);
- returnCount = map->vforcountinarea(func, m, 0, 0, map->list[m].bxs, map->list[m].bys, count, type, ap);
+ returnCount = map->vforcountinarea(func, m, 0, 0, map->list[m].xs, map->list[m].ys, count, type, ap);
va_end(ap);
return returnCount;