From 029e1f3a464316da099256daeb8cbe06c62c2f30 Mon Sep 17 00:00:00 2001 From: MysterD Date: Sun, 29 Aug 2021 14:28:46 -0700 Subject: [PATCH] Fixed crash in credits --- src/engine/surface_load.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/engine/surface_load.c b/src/engine/surface_load.c index e575c418..f7fc3643 100644 --- a/src/engine/surface_load.c +++ b/src/engine/surface_load.c @@ -762,6 +762,8 @@ void load_object_surfaces(s16** data, s16* vertexData) { * Transform an object's vertices, reload them, and render the object. */ void load_object_collision_model(void) { + if (gCurrentObject->collisionData == NULL) { return; } + UNUSED s32 unused; s16 vertexData[600];