From be29b6a7d64c5a57ce897ce30fba2e3d6e9ff2c9 Mon Sep 17 00:00:00 2001 From: Gin <> Date: Sun, 19 Nov 2023 13:20:07 -0800 Subject: [PATCH] m --- .../Programs/ShinyHunting/PokemonSV_ShinyHunt-Scatterbug.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/SerialPrograms/Source/PokemonSV/Programs/ShinyHunting/PokemonSV_ShinyHunt-Scatterbug.cpp b/SerialPrograms/Source/PokemonSV/Programs/ShinyHunting/PokemonSV_ShinyHunt-Scatterbug.cpp index ebd82da5a..de8f527ba 100644 --- a/SerialPrograms/Source/PokemonSV/Programs/ShinyHunting/PokemonSV_ShinyHunt-Scatterbug.cpp +++ b/SerialPrograms/Source/PokemonSV/Programs/ShinyHunting/PokemonSV_ShinyHunt-Scatterbug.cpp @@ -202,7 +202,7 @@ void ShinyHuntScatterbug::program(SingleSwitchProgramEnvironment& env, BotBaseCo env.log("Reset game to handle recoverable error"); reset_game(env.program_info(), env.console, context); - stats.m_game_resets++; + ++stats.m_game_resets; }catch(ProgramFinishedException&){ GO_HOME_WHEN_DONE.run_end_of_program(context); return; @@ -368,6 +368,7 @@ void ShinyHuntScatterbug::run_one_sandwich_iteration(SingleSwitchProgramEnvironm if (!saved_after_this_sandwich){ // Reset game to save rare herbs reset_game(env.program_info(), env.console, context); + ++stats.m_game_resets; } }