容错处理
This commit is contained in:
parent
d5cd39c3fb
commit
5d9e8d33de
@ -105,6 +105,9 @@ end
|
||||
|
||||
function DailyChallengeComp:refreshBoss()
|
||||
local curBossInfo = DataManager.DailyChallengeData:getFinalBossInfo()
|
||||
if not curBossInfo then
|
||||
return
|
||||
end
|
||||
if self.curModelId == curBossInfo.model_id then
|
||||
return
|
||||
end
|
||||
|
||||
@ -128,6 +128,9 @@ function DailyChallengeData:getFinalBossInfo()
|
||||
return
|
||||
end
|
||||
local mapCfg = self:getMapConfig()
|
||||
if not mapCfg then
|
||||
return
|
||||
end
|
||||
return ConfigManager:getConfig("monster")[mapCfg.monster[#mapCfg.monster]]
|
||||
end
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user