bug修复
This commit is contained in:
parent
2f3bf147d1
commit
82d6a78a6a
@ -283,8 +283,12 @@ function ChapterData:getChapterPassed(chapterId)
|
||||
end
|
||||
|
||||
function ChapterData:openBox(chapterId, index)
|
||||
if not self.data.chapterInfo[chapterId] or not self.data.chapterInfo[chapterId].index then
|
||||
return
|
||||
if not self.data.chapterInfo[chapterId] then
|
||||
self.data.chapterInfo[chapterId] = {
|
||||
total_count = 0,
|
||||
index = {},
|
||||
mystery_box_idx = {}
|
||||
}
|
||||
end
|
||||
for _, idx in ipairs(self.data.chapterInfo[chapterId].index) do
|
||||
if idx == index then
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user