From c32c095f3b1a1ad74317908e7858500061ec3634 Mon Sep 17 00:00:00 2001 From: Celtic Minstrel Date: Sun, 11 Mar 2018 13:13:03 -0400 Subject: [PATCH] Use wml.tag in helper.get_user_choice --- data/lua/helper.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/data/lua/helper.lua b/data/lua/helper.lua index 7b3eb8ded039..d007b1d24df1 100644 --- a/data/lua/helper.lua +++ b/data/lua/helper.lua @@ -112,10 +112,10 @@ function helper.get_user_choice(attr, options) msg[k] = attr[k] end for k,v in ipairs(options) do - table.insert(msg, { "option", { message = v, - { "command", { { "lua", { + table.insert(msg, wml.tag.option, { message = v, + wml.tag.command, { wml.tag.lua, { code = string.format("wesnoth.__user_choice_helper(%d)", k) - }}}}}}) + }}}) end wml_actions.message(msg) wesnoth.__user_choice_helper = nil