Fixup ee868fc82b
. Forgot to remove an 'end' key
Also re-added the parens around the get_child call
This commit is contained in:
parent
ee868fc82b
commit
b4614de149
1 changed files with 1 additions and 1 deletions
|
@ -1159,7 +1159,7 @@ function wml_actions.find_path(cfg)
|
|||
local filter_unit = (helper.get_child(cfg, "traveler")) or helper.wml_error("[find_path] missing required [traveler] tag")
|
||||
-- only the first unit matching
|
||||
local unit = wesnoth.get_units(filter_unit)[1] or helper.wml_error("[find_path]'s filter didn't match any unit")
|
||||
local filter_location = helper.get_child(cfg, "destination") or helper.wml_error( "[find_path] missing required [destination] tag" ) end
|
||||
local filter_location = (helper.get_child(cfg, "destination")) or helper.wml_error( "[find_path] missing required [destination] tag" )
|
||||
-- support for $this_unit
|
||||
local this_unit = start_var_scope("this_unit")
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue