Skip to content

Commit

Permalink
Update PokemonSwSh_MaxLairDatabase.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
pifopi authored Sep 30, 2024
1 parent bc946c8 commit 2a13431
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ std::map<std::string, MaxLairMon> build_maxlair_mon_database(const std::string&
{
JsonArray& array = obj.get_array_throw("base_stats", filepath);
if (array.size() != 6){
throw FileException(nullptr, PA_CURRENT_FUNCTION, "Base stats should contain 6 elements: " + slug, std::move(path));
throw FileException(nullptr, PA_CURRENT_FUNCTION, "Base stats should contain 6 elements: " + slug, std::move(filepath));
}
for (int c = 0; c < 6; c++){
mon.base_stats[c] = (uint8_t)array[c].to_integer_throw(filepath);
Expand Down

0 comments on commit 2a13431

Please sign in to comment.