Fix crash in spawn_default_star()
This commit is contained in:
parent
2ecf852918
commit
f7056976ac
|
@ -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) {
|
struct Object* spawn_default_star(f32 x, f32 y, f32 z) {
|
||||||
if (sCurrPlayMode != PLAY_MODE_NORMAL && sCurrPlayMode != PLAY_MODE_PAUSED) { return NULL; }
|
if (sCurrPlayMode != PLAY_MODE_NORMAL && sCurrPlayMode != PLAY_MODE_PAUSED) { return NULL; }
|
||||||
|
if (o == NULL) { return NULL; }
|
||||||
u32 behParams = o->oBehParams;
|
u32 behParams = o->oBehParams;
|
||||||
|
|
||||||
// de-duplication checking
|
// de-duplication checking
|
||||||
|
|
Loading…
Reference in New Issue