Use same default id in [remove_unit_overlay] as [unit_overlay]

This commit is contained in:
Gunter Labes 2024-05-29 17:41:38 +02:00
parent 28a8959854
commit 944ed026a2

View file

@ -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,