This commit is contained in:
Fang 2023-10-07 10:41:41 +08:00
parent 86e1bfa704
commit 3e2713506e

View File

@ -152,7 +152,7 @@ function SkinData:getIcon(skinId)
return cfg.icon return cfg.icon
else else
local heroInfo = ConfigManager:getConfig("hero")[self:getHeroIdBySkinId(skinId)] local heroInfo = ConfigManager:getConfig("hero")[self:getHeroIdBySkinId(skinId)]
return heroInfo.icon return heroInfo and heroInfo.icon or ""
end end
end end