Fix the fix (#746)

I have SO got to check I pressed Save before I press Commit! This time it bit me because it got merged so quickly.
This commit is contained in:
Gregory A Lundberg 2016-08-12 13:32:55 -05:00 committed by Celtic Minstrel
parent 70131ec7f1
commit 5f9a711dab

View file

@ -24,13 +24,16 @@ function wml_actions.object(cfg)
unit = wesnoth.get_unit(context.x1, context.y1)
end
-- If a unit matches the filter, proceed
if unit then
text = tostring(cfg.description or "")
end
-- Default to silent if object has no description
local silent = cfg.silent
if silent == nil then silent = (text:len() == 0) end
-- If a unit matches the filter, proceed
if unit then
text = tostring(cfg.description or "")
command_type = "then"
if cfg.no_write ~= nil then