容错
This commit is contained in:
parent
86e1bfa704
commit
3e2713506e
@ -152,7 +152,7 @@ function SkinData:getIcon(skinId)
|
||||
return cfg.icon
|
||||
else
|
||||
local heroInfo = ConfigManager:getConfig("hero")[self:getHeroIdBySkinId(skinId)]
|
||||
return heroInfo.icon
|
||||
return heroInfo and heroInfo.icon or ""
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user