diff --git a/stepmania/src/ComboGraph.cpp b/stepmania/src/ComboGraph.cpp index 597acf4880..ed94486524 100644 --- a/stepmania/src/ComboGraph.cpp +++ b/stepmania/src/ComboGraph.cpp @@ -26,7 +26,7 @@ void ComboGraph::LoadFromNode( const XNode* pNode ) m_pMaxComboText = (BitmapText *) this->GetChild( "MaxComboText" ); if( m_pMaxComboText == NULL ) RageException::Throw( "%s: ComboGraph: must have a child named \"MaxComboText\"", ActorUtil::GetWhere(pNode).c_str() ); - if( !m_pMaxComboText->IsType("BitmapText") ) + if( dynamic_cast(m_pMaxComboText) == NULL ) RageException::Throw( "%s: ComboGraph: \"MaxComboText\" child is not a BitmapText", ActorUtil::GetWhere(pNode).c_str() ); m_pNormalCombo = this->GetChild( "NormalCombo" );