Fixup ee868fc82b. Forgot to remove an 'end' key

Also re-added the parens around the get_child call
This commit is contained in:
Charles Dang 2015-01-09 22:09:29 +11:00
parent ee868fc82b
commit b4614de149

View file

@ -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")