Skip to content

Commit

Permalink
fix map_forcountinmap using block size rather than cell size
Browse files Browse the repository at this point in the history
closes #2330
  • Loading branch information
Helianthella committed Nov 26, 2018
1 parent 97606ea commit 41d370c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/map/map.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

1 comment on commit 41d370c

@bWolfie
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks mate

Please sign in to comment.