Fixed traceback in menu.

This commit is contained in:
Storm Dragon
2025-09-07 18:21:13 -04:00
parent 3034712c95
commit 8a60c8e454

View File

@@ -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: