Various fixes for FFI
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-01-03 13:56:20 +01:00
parent bd804ea280
commit 62a3ffb2bf
7 changed files with 51 additions and 34 deletions

View File

@@ -156,7 +156,7 @@ extern "C" fn pokemon_real_ability_index(ptr: ExternPointer<Arc<Pokemon>>) -> u8
ptr.as_ref().real_ability().index
}
ffi_vec_value_getters!(Pokemon, types, TypeIdentifier);
ffi_vec_value_getters!(Pokemon, Pokemon, types, TypeIdentifier);
/// Gets a learned move of the Pokemon. Index should generally be below [`MAX_MOVES`], you will get
/// a null pointer otherwise.