From b56ddbbf87e77271131af794980ef456a653fbac Mon Sep 17 00:00:00 2001 From: pifopi Date: Wed, 19 Feb 2025 01:05:30 +0100 Subject: [PATCH] Fix sword and shield sorter --- .../PokemonSwSh_BoxReorderNationalDex.cpp | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/SerialPrograms/Source/PokemonSwSh/Programs/General/PokemonSwSh_BoxReorderNationalDex.cpp b/SerialPrograms/Source/PokemonSwSh/Programs/General/PokemonSwSh_BoxReorderNationalDex.cpp index 5928b79208..7b49f9b9ec 100644 --- a/SerialPrograms/Source/PokemonSwSh/Programs/General/PokemonSwSh_BoxReorderNationalDex.cpp +++ b/SerialPrograms/Source/PokemonSwSh/Programs/General/PokemonSwSh_BoxReorderNationalDex.cpp @@ -189,22 +189,6 @@ void BoxReorderNationalDex::program(SingleSwitchProgramEnvironment& env, ProCont dex_slug_order.emplace(dex_slugs[i], i); } - // check if we have any pokemon name read failure. - for(size_t i = 0; i < current_order.size(); ++i){ - const auto it = dex_slug_order.find(current_order[i]); - // If OCR gives a name that is not in the nation dex, throw an error: - if (it == dex_slug_order.end()){ - const auto [box, row, col] = get_location(i); - std::stringstream os; - os << "Failed to read pokemon name at box " << box << " row " << row << " col " << col; - OperationFailedException::fire( - ErrorReport::SEND_ERROR_REPORT, - os.str(), - env.console - ); - } - } - // Sort the read pokemon by the dex order. std::vector sorted_order = current_order;