From 30a361920242a9583b19cabdef06797cd67f64fe Mon Sep 17 00:00:00 2001 From: Celtic Minstrel Date: Tue, 20 Jul 2021 19:14:28 -0400 Subject: [PATCH] Lua API: Fix bug in wesnoth.map.iter_adjacent Fixes #5972 --- data/lua/core/map.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/lua/core/map.lua b/data/lua/core/map.lua index caa1fac53de..f7d64b1300d 100644 --- a/data/lua/core/map.lua +++ b/data/lua/core/map.lua @@ -67,7 +67,7 @@ if wesnoth.kernel_type() ~= "Application Lua Kernel" then end function wesnoth.map.iter_adjacent(map, ...) - local where, n = wesnoth.read_location(...) + local where, n = wesnoth.map.read_location(...) if n == 0 then error('wesnoth.map.iter_adjacent: missing location') end local with_borders = select(n + 1, ...) local adj = {wesnoth.map.get_adjacent_hexes(where)}