Fix crash in spawn_default_star()

This commit is contained in:
MysterD 2022-03-21 12:25:06 -07:00
parent 2ecf852918
commit f7056976ac
1 changed files with 1 additions and 0 deletions

View File

@ -142,6 +142,7 @@ static u8 spawn_star_deduplication(u32* array, u8* count, u32 behParams) {
struct Object* spawn_default_star(f32 x, f32 y, f32 z) {
if (sCurrPlayMode != PLAY_MODE_NORMAL && sCurrPlayMode != PLAY_MODE_PAUSED) { return NULL; }
if (o == NULL) { return NULL; }
u32 behParams = o->oBehParams;
// de-duplication checking