mirror of
https://github.com/coop-deluxe/sm64coopdx.git
synced 2024-11-22 03:55:11 +00:00
Fix crash in retrieve_animation_index()
This commit is contained in:
parent
c159fabeb7
commit
9a99ee492e
1 changed files with 1 additions and 0 deletions
|
@ -813,6 +813,7 @@ void geo_obj_init_animation_accel(struct GraphNodeObject *graphNode, const struc
|
|||
* with actual animation values.
|
||||
*/
|
||||
s32 retrieve_animation_index(s32 frame, u16 **attributes) {
|
||||
if (!attributes || !(*attributes)) { return 0; }
|
||||
s32 result;
|
||||
|
||||
if (frame < (*attributes)[0]) {
|
||||
|
|
Loading…
Reference in a new issue