Properly clean up Marios on global terminate

This commit is contained in:
jaburns 2021-07-28 16:11:21 -06:00
parent 0fde7c26d3
commit a167b38ba2

View file

@ -103,7 +103,7 @@ SM64_LIB_FN void sm64_global_terminate( void )
{
for( int i = 0; i < s_mario_instance_pool.size; ++i )
if( s_mario_instance_pool.objects[i] != NULL )
global_state_delete( ((struct MarioInstance *)s_mario_instance_pool.objects[ i ])->globalState );
sm64_mario_delete( i );
obj_pool_free_all( &s_mario_instance_pool );
}