find_chapter_in_array now exits to the main menu in case of error
This commit is contained in:
@ -109,9 +109,8 @@ init python:
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
chapter_list_index = chapter_list.index(chapter)
|
chapter_list_index = chapter_list.index(chapter)
|
||||||
except ValueError:
|
except ValueError: # This crashes the game otherwise since it wouldn't find the correct chapter
|
||||||
chapter_list_index = -1
|
MainMenu(confirm=False) () # Exits to the main menu
|
||||||
chapter = ""
|
|
||||||
|
|
||||||
|
|
||||||
label reset_chapter_list:
|
label reset_chapter_list:
|
||||||
|
Reference in New Issue
Block a user