fix copying when unloaded

This commit is contained in:
Glenn Maynard
2005-07-16 03:10:59 +00:00
parent 8b52f32c8d
commit ee791b9c9c
2 changed files with 8 additions and 2 deletions
+4 -1
View File
@@ -59,7 +59,10 @@ Sprite::Sprite( const Sprite &cpy ):
CPY( m_fTexCoordVelocityY );
#undef CPY
m_pTexture = TEXTUREMAN->CopyTexture( cpy.m_pTexture );
if( cpy.m_pTexture != NULL )
m_pTexture = TEXTUREMAN->CopyTexture( cpy.m_pTexture );
else
m_pTexture = NULL;
}
RageTextureID Sprite::SongBGTexture( RageTextureID ID )