fix copying when unloaded
This commit is contained in:
@@ -97,7 +97,10 @@ BitmapText::BitmapText( const BitmapText &cpy ):
|
|||||||
CPY( m_pTextures );
|
CPY( m_pTextures );
|
||||||
#undef CPY
|
#undef CPY
|
||||||
|
|
||||||
m_pFont = FONT->CopyFont( cpy.m_pFont );
|
if( cpy.m_pFont != NULL )
|
||||||
|
m_pFont = FONT->CopyFont( cpy.m_pFont );
|
||||||
|
else
|
||||||
|
m_pFont = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
void BitmapText::LoadFromNode( const CString& sDir, const XNode* pNode )
|
void BitmapText::LoadFromNode( const CString& sDir, const XNode* pNode )
|
||||||
|
|||||||
@@ -59,7 +59,10 @@ Sprite::Sprite( const Sprite &cpy ):
|
|||||||
CPY( m_fTexCoordVelocityY );
|
CPY( m_fTexCoordVelocityY );
|
||||||
#undef CPY
|
#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 )
|
RageTextureID Sprite::SongBGTexture( RageTextureID ID )
|
||||||
|
|||||||
Reference in New Issue
Block a user