Fix [object] without a filter

This commit is contained in:
Celtic Minstrel 2015-10-01 16:13:19 -04:00
parent 13033270ae
commit 74152fc2cb

View file

@ -19,7 +19,7 @@ function wml_actions.object(cfg)
if filter then
unit = wesnoth.get_units(filter)[1]
else
unit = wesnoth.get_unit(context.x, context.y)
unit = wesnoth.get_unit(context.x1, context.y1)
end
-- If a unit matches the filter, proceed