FFI for Pokemon class
This commit is contained in:
@@ -65,7 +65,7 @@ register! {
|
||||
pokemon: ExternRef<Pokemon>,
|
||||
) -> ExternRef<Species> {
|
||||
let species = pokemon.value_func(&env).unwrap().species();
|
||||
ExternRef::func_new(&env, species)
|
||||
ExternRef::func_new(&env, &species)
|
||||
}
|
||||
|
||||
fn pokemon_get_weight(
|
||||
|
||||
Reference in New Issue
Block a user