Use same default id in [remove_unit_overlay] as [unit_overlay]
This commit is contained in:
parent
28a8959854
commit
944ed026a2
1 changed files with 1 additions and 1 deletions
|
@ -370,7 +370,7 @@ function wml_actions.remove_unit_overlay(cfg)
|
|||
end
|
||||
if has_already then
|
||||
u:add_modification("object", {
|
||||
id = cfg.object_id,
|
||||
id = cfg.object_id or get_overlay_object_id(img),
|
||||
wml.tag.effect {
|
||||
apply_to = "overlay",
|
||||
remove = img,
|
||||
|
|
Loading…
Add table
Reference in a new issue