From a6ea780f7dccb52e4668802026c0721cba1b3611 Mon Sep 17 00:00:00 2001 From: Alina Lenk Date: Thu, 10 Feb 2022 20:48:01 +0100 Subject: [PATCH] Fix cardinal_adjc_iterate only accepting identifiers as center_tile See osdn #43835 --- common/map.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/map.h b/common/map.h index 8b21007e9a..3ddbb314c2 100644 --- a/common/map.h +++ b/common/map.h @@ -432,8 +432,8 @@ extern struct terrain_misc terrain_control; /* Iterate itr_tile through all map tiles cardinally adjacent to the given * center map position, with normalization. Does not include the center * position. The order of positions is unspecified. */ -#define cardinal_adjc_iterate(center_tile, itr_tile) \ - adjc_dirlist_iterate(center_tile, itr_tile, _dir_itr##center_tile, \ +#define cardinal_adjc_iterate(center_tile, itr_tile) \ + adjc_dirlist_iterate(center_tile, itr_tile, _dir_itr##itr_tile, \ wld.map.cardinal_dirs, wld.map.num_cardinal_dirs) #define cardinal_adjc_iterate_end adjc_dirlist_iterate_end -- 2.17.1