don't unsub if never loaded

This commit is contained in:
Glenn Maynard
2005-03-01 15:16:34 +00:00
parent 54a6a1a130
commit 728c5c7778
+2 -1
View File
@@ -20,7 +20,8 @@ ScoreDisplayCalories::ScoreDisplayCalories()
ScoreDisplayCalories::~ScoreDisplayCalories()
{
MESSAGEMAN->Unsubscribe( this, m_sMessageOnStep );
if( m_sMessageOnStep != "" )
MESSAGEMAN->Unsubscribe( this, m_sMessageOnStep );
}
void ScoreDisplayCalories::LoadFromNode( const CString& sDir, const XNode* pNode )