mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
engine: common: fix world submodels were not being purged correctly, leading to a "memory leak"
This commit is contained in:
@@ -62,7 +62,7 @@ static void Mod_Modellist_f( void )
|
||||
}
|
||||
|
||||
Con_Printf( "-----------------------------------\n" );
|
||||
Con_Printf( "%i total models\n", nummodels );
|
||||
Con_Printf( "%i total models, %i total allocated slots\n", nummodels, mod_numknown );
|
||||
Con_Printf( "\n" );
|
||||
}
|
||||
|
||||
@@ -443,8 +443,8 @@ static void Mod_PurgeStudioCache( void )
|
||||
|
||||
if( mod_known[i].name[0] == '*' )
|
||||
Mod_FreeModel( &mod_known[i] );
|
||||
|
||||
mod_known[i].needload = NL_FREE_UNUSED;
|
||||
else
|
||||
mod_known[i].needload = NL_FREE_UNUSED;
|
||||
}
|
||||
|
||||
Mem_EmptyPool( com_studiocache );
|
||||
|
||||
Reference in New Issue
Block a user