fix #5184 [modify_unit]profile

This commit is contained in:
gfgtdf 2020-10-04 03:06:33 +02:00 committed by GitHub
parent d8dc94a5cd
commit 116687c983
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -121,7 +121,7 @@ local function simple_modify_unit(cfg)
u.status.guardian = true
end
if cfg.profile ~= nil then
u.portrait = profile
u.portrait = cfg.profile
end
if cfg.unrenamable ~= nil then
u.renamable = not cfg.unrenamable