Oops. Duplication of code leads to duplication of bugs yet again. :)

This commit is contained in:
Glenn Maynard
2002-10-16 19:31:17 +00:00
parent 88a01c7ca4
commit aba8523532
+5
View File
@@ -93,6 +93,11 @@ bool BitmapText::LoadFromTextureAndChars( CString sTexturePath, CString sChars )
{
LOG->Trace( "BitmapText::LoadFromTextureAndChars(%s)", sTexturePath );
if( m_pFont ) {
FONT->UnloadFont( m_pFont->m_sTexturePath );
m_pFont = NULL;
}
// load font
m_pFont = FONT->LoadFont( sTexturePath, sChars );