Fix [show_if] in [message][option]
This commit is contained in:
parent
52558d0d7c
commit
d5eea2abbf
1 changed files with 1 additions and 1 deletions
|
@ -128,7 +128,7 @@ function wesnoth.wml_actions.message(cfg)
|
|||
|
||||
local options, option_events = {}, {}
|
||||
for option in helper.child_range(cfg, "option") do
|
||||
local condition = helper.get_child(cfg, "show_if") or {}
|
||||
local condition = helper.get_child(option, "show_if") or {}
|
||||
|
||||
if wesnoth.eval_conditional(condition) then
|
||||
table.insert(options, option.message)
|
||||
|
|
Loading…
Add table
Reference in a new issue