Fixed traceback in menu.
This commit is contained in:
@@ -480,6 +480,8 @@ class WickedQuest:
|
|||||||
messagebox(f"Failed to load save: {save_data}")
|
messagebox(f"Failed to load save: {save_data}")
|
||||||
elif choice == "play":
|
elif choice == "play":
|
||||||
self.currentGame = select_game(self.sounds)
|
self.currentGame = select_game(self.sounds)
|
||||||
|
if self.currentGame is None:
|
||||||
|
continue # User cancelled game selection, return to main menu
|
||||||
# Validate level files before starting
|
# Validate level files before starting
|
||||||
errors = self.validate_levels()
|
errors = self.validate_levels()
|
||||||
if errors:
|
if errors:
|
||||||
|
Reference in New Issue
Block a user