mirror of
https://github.com/libsm64/libsm64.git
synced 2025-01-22 15:43:11 -05:00
Properly clean up Marios on global terminate
This commit is contained in:
parent
0fde7c26d3
commit
a167b38ba2
1 changed files with 1 additions and 1 deletions
|
@ -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 );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue