diff --git a/SerialPrograms/Source/PokemonSV/Programs/AutoStory/PokemonSV_AutoStoryTools.cpp b/SerialPrograms/Source/PokemonSV/Programs/AutoStory/PokemonSV_AutoStoryTools.cpp index 9cffda974..a1113d7cd 100644 --- a/SerialPrograms/Source/PokemonSV/Programs/AutoStory/PokemonSV_AutoStoryTools.cpp +++ b/SerialPrograms/Source/PokemonSV/Programs/AutoStory/PokemonSV_AutoStoryTools.cpp @@ -175,7 +175,7 @@ void run_battle_press_A( "run_battle_press_A(): Lead pokemon fainted.", true ); - default: // timeout + default: throw InternalProgramError(nullptr, PA_CURRENT_FUNCTION, "run_battle_press_A: Unknown callback triggered."); } @@ -279,6 +279,8 @@ void clear_dialog(ConsoleHandle& console, BotBaseContext& context, case CallbackEnum::BLACK_DIALOG_BOX: callbacks.emplace_back(black_dialog_box); break; + default: + throw InternalProgramError(nullptr, PA_CURRENT_FUNCTION, "clear_dialog: Unknown callback requested."); } }