Support name= in [lua] ConditionalWML
This commit is contained in:
parent
e9b86c2ff6
commit
516f043e89
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue