parent
68e7dd5f08
commit
733c1d0ce4
CInterface/Library
|
@ -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();
|
||||
}
|
||||
)
|
||||
}
|
Loading…
Reference in New Issue