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
@@ -97,7 +97,10 @@ BitmapText::BitmapText( const BitmapText &cpy ):
CPY( m_pTextures );
#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 )