Permalink
Browse files

fix map_forcountinmap using block size rather than cell size

closes #2330
  • Loading branch information...
Helianthella committed Nov 26, 2018
1 parent 97606ea commit 41d370cd3308be48b4ce00a50ee46515742978b0
Showing with 1 addition and 1 deletion.
  1. +1 −1 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;

1 comment on commit 41d370c

@EyesOfAHawk

This comment has been minimized.

Contributor

EyesOfAHawk commented on 41d370c Nov 27, 2018

thanks mate

Please sign in to comment.