[modify_unit]: fix handling of unrenamable in the optimized path
This commit is contained in:
parent
51d6402453
commit
fda3c9af75
1 changed files with 1 additions and 1 deletions
|
@ -134,7 +134,7 @@ local function simple_modify_unit(cfg)
|
|||
if cfg.ai_special == "guardian" then
|
||||
u.status.guardian = true
|
||||
end
|
||||
if cfg.unrenamable then
|
||||
if cfg.unrenamable ~= nil then
|
||||
u.renamable = not cfg.unrenamable
|
||||
end
|
||||
---------- SIMPLE ATTRIBUTES ----------
|
||||
|
|
Loading…
Add table
Reference in a new issue