fix crash in ~Character when deleting Characters that failed to load
This commit is contained in:
@@ -35,7 +35,8 @@ void RageTexturePreloader::Load( const RageTextureID &ID )
|
||||
|
||||
void RageTexturePreloader::UnloadAll()
|
||||
{
|
||||
ASSERT( TEXTUREMAN );
|
||||
if( TEXTUREMAN == NULL )
|
||||
return;
|
||||
|
||||
for( unsigned i = 0; i < m_apTextures.size(); ++i )
|
||||
TEXTUREMAN->UnloadTexture( m_apTextures[i] );
|
||||
|
||||
Reference in New Issue
Block a user