Commit 5f44bcc3185d0218eae7fe2b2fe4e7d48092fc79
1 parent
e6439157
bug
Showing
1 changed file
with
1 additions
and
0 deletions
Show diff stats
src/models/RolePlugin.lua
@@ -740,6 +740,7 @@ function RolePlugin.bind(Role) | @@ -740,6 +740,7 @@ function RolePlugin.bind(Role) | ||
740 | end | 740 | end |
741 | 741 | ||
742 | function Role:advChapterIsOpen(chapterId, layer) | 742 | function Role:advChapterIsOpen(chapterId, layer) |
743 | + layer = layer or 1 | ||
743 | local exlayer = math.floor((layer - 1) / 10) * 10 + 1 | 744 | local exlayer = math.floor((layer - 1) / 10) * 10 + 1 |
744 | 745 | ||
745 | if exlayer == 1 then --第一层判断前置 | 746 | if exlayer == 1 then --第一层判断前置 |