Fixes C Interface for GetPreEvolution function
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
68e7dd5f08
commit
733c1d0ce4
|
@ -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;
|
||||
} else {
|
||||
out = v.value().GetRaw();
|
||||
}
|
||||
)
|
||||
}
|
Loading…
Reference in New Issue