mirror of
https://git.cavemanon.xyz/Cavemanon/SnootGame.git
synced 2025-01-22 09:16:56 +01:00
find_chapter_in_array now exits to the main menu in case of error
This commit is contained in:
parent
4ce0d1df31
commit
aee5d8b610
1 changed files with 2 additions and 3 deletions
|
@ -109,9 +109,8 @@ init python:
|
|||
|
||||
try:
|
||||
chapter_list_index = chapter_list.index(chapter)
|
||||
except ValueError:
|
||||
chapter_list_index = -1
|
||||
chapter = ""
|
||||
except ValueError: # This crashes the game otherwise since it wouldn't find the correct chapter
|
||||
MainMenu(confirm=False) () # Exits to the main menu
|
||||
|
||||
|
||||
label reset_chapter_list:
|
||||
|
|
Loading…
Reference in a new issue