Skip to content

Commit

Permalink
fix [modify_unit] cannot set attributes to false #4325
Browse files Browse the repository at this point in the history
  • Loading branch information
gfgtdf committed Sep 8, 2019
1 parent a40209b commit 7621b9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/lua/wml/modify_unit.lua
Expand Up @@ -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
Expand Down

0 comments on commit 7621b9b

Please sign in to comment.