|
@@ -90,15 +90,17 @@ namespace GFGGame
|
|
|
if (levelCfg.type == ConstInstanceZonesType.Story)
|
|
|
{
|
|
|
var chapterCfg = StoryChapterCfgArray.Instance.GetCfg(levelCfg.chapterId);
|
|
|
- string chapter = NumberUtil.GetChiniseNumberText(chapterCfg.order);
|
|
|
- string level = NumberUtil.GetChiniseNumberText(levelCfg.order);
|
|
|
- if (levelCfg.subType == ConstInstanceZonesSubType.Normal)
|
|
|
- {
|
|
|
- listItem.m_txtSourceName.text = string.Format(gameFunctionCfg.name, chapter, level);
|
|
|
- }
|
|
|
- else if (levelCfg.subType == ConstInstanceZonesSubType.Hard)
|
|
|
- {
|
|
|
- listItem.m_txtSourceName.text = string.Format("精英" + gameFunctionCfg.name, chapter, level);
|
|
|
+ if (chapterCfg != null) {
|
|
|
+ string chapter = NumberUtil.GetChiniseNumberText(chapterCfg.order);
|
|
|
+ string level = NumberUtil.GetChiniseNumberText(levelCfg.order);
|
|
|
+ if (levelCfg.subType == ConstInstanceZonesSubType.Normal)
|
|
|
+ {
|
|
|
+ listItem.m_txtSourceName.text = string.Format(gameFunctionCfg.name, chapter, level);
|
|
|
+ }
|
|
|
+ else if (levelCfg.subType == ConstInstanceZonesSubType.Hard)
|
|
|
+ {
|
|
|
+ listItem.m_txtSourceName.text = string.Format("精英" + gameFunctionCfg.name, chapter, level);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
else if (levelCfg.type == ConstInstanceZonesType.Studio)
|