From 9a99ee492e9b367cc52abdd8f5673695faeca8b8 Mon Sep 17 00:00:00 2001 From: MysterD Date: Sun, 14 May 2023 12:30:55 -0700 Subject: [PATCH] Fix crash in retrieve_animation_index() --- src/engine/graph_node.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/engine/graph_node.c b/src/engine/graph_node.c index cdd72733..27e18390 100644 --- a/src/engine/graph_node.c +++ b/src/engine/graph_node.c @@ -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]) {