From 516f043e89b5be399ac53d0cf564ec662a32e6eb Mon Sep 17 00:00:00 2001 From: Celtic Minstrel Date: Sun, 27 Nov 2022 13:10:41 -0500 Subject: [PATCH] Support name= in [lua] ConditionalWML --- data/lua/wml-conditionals.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/lua/wml-conditionals.lua b/data/lua/wml-conditionals.lua index 00e618cb06a..3485a739c4f 100644 --- a/data/lua/wml-conditionals.lua +++ b/data/lua/wml-conditionals.lua @@ -10,7 +10,7 @@ end function wesnoth.wml_conditionals.lua(cfg) cfg = wml.shallow_literal(cfg) - local bytecode, message = load(cfg.code or "") + local bytecode, message = load(cfg.code or "", cfg.name or nil) if not bytecode then error("~lua:" .. message, 0)