fix [modify_unit] cannot set attributes to false #4325
This commit is contained in:
parent
a40209b3a9
commit
7621b9b63e
1 changed files with 1 additions and 1 deletions
|
@ -120,7 +120,7 @@ local function simple_modify_unit(cfg)
|
|||
end
|
||||
---------- SIMPLE ATTRIBUTES ----------
|
||||
for i, name in ipairs(simple_attributes) do
|
||||
if cfg[name] then
|
||||
if cfg[name] ~= nil then
|
||||
u[name] = cfg[name]
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue