Fixup 9ea9c88356
This commit is contained in:
parent
9ea9c88356
commit
45aa0d4ae8
1 changed files with 2 additions and 1 deletions
|
@ -15,7 +15,8 @@ function wml_actions.object(cfg)
|
|||
|
||||
local unit, command_type, text
|
||||
|
||||
if helper.get_child(cfg, "filter") then
|
||||
local filter = helper.get_child(cfg, "filter")
|
||||
if filter then
|
||||
unit = wesnoth.get_units(filter)[1]
|
||||
else
|
||||
unit = wesnoth.get_unit(contxt.x, context.y)
|
||||
|
|
Loading…
Add table
Reference in a new issue