From 41d370cd3308be48b4ce00a50ee46515742978b0 Mon Sep 17 00:00:00 2001 From: gumi Date: Mon, 26 Nov 2018 12:19:41 -0500 Subject: fix map_forcountinmap using block size rather than cell size closes #2330 --- src/map/map.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/map/map.c') 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; -- cgit v1.2.3-60-g2f50