From c27323e5e07975e07325444825561575fd08be0f Mon Sep 17 00:00:00 2001 From: Dalton-V Date: Thu, 2 Jul 2026 09:43:10 -0500 Subject: [PATCH] add stop condition. --- .../Programs/ShinyHunting/PokemonFRLG_ShinyHunt-Fishing.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/SerialPrograms/Source/PokemonFRLG/Programs/ShinyHunting/PokemonFRLG_ShinyHunt-Fishing.cpp b/SerialPrograms/Source/PokemonFRLG/Programs/ShinyHunting/PokemonFRLG_ShinyHunt-Fishing.cpp index 2694d5cc17..1edf4f02c5 100644 --- a/SerialPrograms/Source/PokemonFRLG/Programs/ShinyHunting/PokemonFRLG_ShinyHunt-Fishing.cpp +++ b/SerialPrograms/Source/PokemonFRLG/Programs/ShinyHunting/PokemonFRLG_ShinyHunt-Fishing.cpp @@ -89,7 +89,8 @@ void ShinyHuntFishing::program( */ env.log("FRLG Fishing shiny hunt started."); - while (true){ + bool finished = false; + while (!finished){ send_program_status_notification(env, NOTIFICATION_STATUS_UPDATE); int fish_result = fish_encounter(env.console, context); @@ -122,6 +123,7 @@ void ShinyHuntFishing::program( env.console.video().snapshot(), true ); + finished = true; break; } }