From 74544dec4657f0d2b657058a5dba743cb5100e9d Mon Sep 17 00:00:00 2001 From: Alina Lenk Date: Thu, 10 Feb 2022 20:41:33 +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 8f96883f94..eefd719405 100644 --- a/common/map.h +++ b/common/map.h @@ -444,8 +444,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(nmap, center_tile, itr_tile) \ - adjc_dirlist_iterate(nmap, center_tile, itr_tile, _dir_itr##center_tile, \ +#define cardinal_adjc_iterate(nmap, center_tile, itr_tile) \ + adjc_dirlist_iterate(nmap, 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