mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-03 21:13:25 +00:00
Fixup 9ea9c88356fe
This commit is contained in:
parent
9ea9c88356
commit
45aa0d4ae8
@ -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…
x
Reference in New Issue
Block a user