From 3752ee0cc1c9c13171d29dc393eb148aadbbd0a3 Mon Sep 17 00:00:00 2001 From: Dugi Date: Thu, 19 Dec 2024 02:09:07 +0100 Subject: [PATCH] Fix erroneous luacheck warning --- lua/main.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/main.lua b/lua/main.lua index f9b23033..379db0a7 100644 --- a/lua/main.lua +++ b/lua/main.lua @@ -1222,7 +1222,7 @@ function wesnoth.wml_actions.knockback(cfg) end local target = wesnoth.map.get(knocked) local last_acceptable_target = target - for distance = 1, max_distance do + for distance = 1, max_distance do --luacheck: no unused local adj = {}; adj["n"], adj["ne"], adj["se"], adj["s"], adj["sw"], adj["nw"] = wesnoth.map.get_adjacent_hexes(target) local potential_target = adj[direction]