Skip to content

Commit

Permalink
ai_helper.lua: fix a typo
Browse files Browse the repository at this point in the history
  • Loading branch information
mattsc committed Mar 6, 2021
1 parent cadb233 commit 51e4b56
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions data/ai/lua/ai_helper.lua
Expand Up @@ -70,7 +70,7 @@ end
function ai_helper.clear_labels()
-- Clear all labels on a map
for x, y in wesnoth.current.map:iter(true) do
M.add_labels { x = x, y = y, text = "" }
M.add_label { x = x, y = y, text = "" }
end
end

Expand Down Expand Up @@ -111,7 +111,7 @@ function ai_helper.put_labels(map, cfg)
end

if (type(out) == 'number') then out = out * factor end
M.add_labels { x = x, y = y, text = out, color = cfg.color }
M.add_label { x = x, y = y, text = out, color = cfg.color }
end)
end

Expand Down

0 comments on commit 51e4b56

Please sign in to comment.