From 51e4b56a1e8cec7a3756d17c306484708b912258 Mon Sep 17 00:00:00 2001 From: mattsc Date: Sat, 6 Mar 2021 15:35:43 -0800 Subject: [PATCH] ai_helper.lua: fix a typo --- data/ai/lua/ai_helper.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data/ai/lua/ai_helper.lua b/data/ai/lua/ai_helper.lua index 02b34b327e9b..c73b1ab43085 100644 --- a/data/ai/lua/ai_helper.lua +++ b/data/ai/lua/ai_helper.lua @@ -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 @@ -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