Skip to content

Commit 1a8f120

Browse files
committed
Fix sword and shield sorter
1 parent fb2abdc commit 1a8f120

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

SerialPrograms/Source/PokemonSwSh/Programs/General/PokemonSwSh_BoxReorderNationalDex.cpp

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -189,22 +189,6 @@ void BoxReorderNationalDex::program(SingleSwitchProgramEnvironment& env, ProCont
189189
dex_slug_order.emplace(dex_slugs[i], i);
190190
}
191191

192-
// check if we have any pokemon name read failure.
193-
for(size_t i = 0; i < current_order.size(); ++i){
194-
const auto it = dex_slug_order.find(current_order[i]);
195-
// If OCR gives a name that is not in the nation dex, throw an error:
196-
if (it == dex_slug_order.end()){
197-
const auto [box, row, col] = get_location(i);
198-
std::stringstream os;
199-
os << "Failed to read pokemon name at box " << box << " row " << row << " col " << col;
200-
OperationFailedException::fire(
201-
ErrorReport::SEND_ERROR_REPORT,
202-
os.str(),
203-
env.console
204-
);
205-
}
206-
}
207-
208192
// Sort the read pokemon by the dex order.
209193
std::vector<std::string> sorted_order = current_order;
210194

0 commit comments

Comments
 (0)