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:
parent
70131ec7f1
commit
5f9a711dab
1 changed files with 5 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue