Fixes C Interface for GetPreEvolution function
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Deukhoofd 2021-06-26 17:07:09 +02:00
parent 68e7dd5f08
commit 733c1d0ce4
Signed by: Deukhoofd
GPG Key ID: F63E044490819F6F
1 changed files with 4 additions and 2 deletions

View File

@ -10,8 +10,10 @@ export u8 PkmnLib_SpeciesLibrary_FindPreEvolution(const PokemonSpecies*& out, co
const PokemonSpecies* species) {
Try(
auto v = p->FindPreEvolution(species);
if (!v.has_value())
if (!v.has_value()){
out = nullptr;
out = v.value().GetRaw();
} else {
out = v.value().GetRaw();
}
)
}