fix snoring sfx not stopping on wake up

also stops the snoring sound when mario is deleted
This commit is contained in:
headshot2017
2023-01-26 20:17:30 -04:00
parent f4b6232496
commit e9a3114084
2 changed files with 10 additions and 8 deletions
+2
View File
@@ -265,6 +265,8 @@ SM64_LIB_FN void sm64_mario_delete( int32_t marioId )
struct GlobalState *globalState = ((struct MarioInstance *)s_mario_instance_pool.objects[ marioId ])->globalState;
global_state_bind( globalState );
stop_sound(SOUND_MARIO_SNORING3, gMarioState->marioObj->header.gfx.cameraToObject);
free( gMarioObject );
free_area( gCurrentArea );