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