Skip to content

Commit

Permalink
Fix erroneous luacheck warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Dugy committed Dec 19, 2024
1 parent b8aca07 commit 3752ee0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 3752ee0

Please sign in to comment.