Pass back capture attempt event result over FFI through a pointer, instead of by value.
This commit is contained in:
parent
ad733d92c6
commit
812ef65ea0
|
@ -12,7 +12,7 @@ export_func void PkmnLib_CaptureAttemptEvent_Destruct(CaptureAttemptEvent* p) {
|
|||
export_func const PkmnLib::Battling::Pokemon* PkmnLib_CaptureAttemptEvent_GetPokemon(CaptureAttemptEvent* p) {
|
||||
return p->GetPokemon();
|
||||
}
|
||||
export_func const PkmnLib::Battling::CaptureLibrary::CaptureResult
|
||||
export_func const PkmnLib::Battling::CaptureLibrary::CaptureResult*
|
||||
PkmnLib_CaptureAttemptEvent_GetResult(CaptureAttemptEvent* p) {
|
||||
return p->GetResult();
|
||||
return &p->GetResult();
|
||||
}
|
Loading…
Reference in New Issue