Skip to content

Commit a590ad4

Browse files
committed
Fix the material farmer infinite loop.
1 parent e4d7d1f commit a590ad4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

SerialPrograms/Source/PokemonSV/Programs/PokemonSV_Navigation.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -755,6 +755,7 @@ void reset_to_pokecenter(const ProgramInfo& info, ConsoleHandle& console, BotBas
755755
try {
756756
open_map_from_overworld(info, console, context);
757757
fly_to_closest_pokecenter_on_map(info, console, context);
758+
break;
758759
}catch (UnexpectedBattleException&){
759760
run_battle_press_A(console, context, BattleStopCondition::STOP_OVERWORLD);
760761
}

0 commit comments

Comments
 (0)