diff --git a/Assets/ManagedResources/~Lua/Modules/FightLevel/FightLevelManager.lua b/Assets/ManagedResources/~Lua/Modules/FightLevel/FightLevelManager.lua index 19e0b25c59..74ed788058 100644 --- a/Assets/ManagedResources/~Lua/Modules/FightLevel/FightLevelManager.lua +++ b/Assets/ManagedResources/~Lua/Modules/FightLevel/FightLevelManager.lua @@ -104,7 +104,9 @@ function this.GetChapterLevelData(allChapterId,levelId) end end function this.SetCurChapterId(ChapterId) - curChapterId = ChapterId + if curChapterId < ChapterId then + curChapterId = ChapterId + end end function this.GetCurChapterId() return curChapterId @@ -117,7 +119,9 @@ function this.GetisShowChapterOpenPopup() return isShowChapterOpenPopup end function this.SetCurChapterLevelId(ChapterLevelId) - curChapterLevelId = ChapterLevelId + if curChapterLevelId < ChapterLevelId then + curChapterLevelId = ChapterLevelId + end end function this.GetCurChapterLevelId() return curChapterLevelId