From f3af2d37a90a83bbec25c15e59c29e0f9802daca Mon Sep 17 00:00:00 2001 From: gumi Date: Wed, 7 Nov 2018 16:14:36 -0500 Subject: break the loop in buildin_getunits when the max is reached --- src/map/map.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/map/map.h') diff --git a/src/map/map.h b/src/map/map.h index 207fef2ce..590cc5dea 100644 --- a/src/map/map.h +++ b/src/map/map.h @@ -1285,6 +1285,7 @@ END_ZEROED_BLOCK; int (*foreachinpath) (int (*func)(struct block_list*,va_list), int16 m, int16 x0, int16 y0, int16 x1, int16 y1, int16 range, int length, int type, ...); int (*vforeachinmap) (int (*func)(struct block_list*,va_list), int16 m, int type, va_list args); int (*foreachinmap) (int (*func)(struct block_list*,va_list), int16 m, int type, ...); + int (*forcountinmap) (int (*func)(struct block_list*,va_list), int16 m, int count, int type, ...); int (*vforeachininstance)(int (*func)(struct block_list*,va_list), int16 instance_id, int type, va_list ap); int (*foreachininstance)(int (*func)(struct block_list*,va_list), int16 instance_id, int type,...); -- cgit v1.2.3-60-g2f50