mirror of
https://github.com/doukutsu-rs/doukutsu-rs
synced 2025-01-10 04:57:02 +00:00
fix crashes on certain old android devices
This commit is contained in:
parent
6750cd7ad4
commit
f0780479c2
|
@ -122,6 +122,8 @@ fn get_insets() -> GameResult<(f32, f32, f32, f32)> {
|
|||
let mut elements = [0; 4];
|
||||
vm_env.get_int_array_region(field, 0, &mut elements)?;
|
||||
|
||||
vm_env.delete_local_ref(field.into());
|
||||
|
||||
Ok((elements[0] as f32, elements[1] as f32, elements[2] as f32, elements[3] as f32))
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue