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
+1
View File
@@ -20,6 +20,7 @@ ScoreDisplayCalories::ScoreDisplayCalories()
ScoreDisplayCalories::~ScoreDisplayCalories() ScoreDisplayCalories::~ScoreDisplayCalories()
{ {
if( m_sMessageOnStep != "" )
MESSAGEMAN->Unsubscribe( this, m_sMessageOnStep ); MESSAGEMAN->Unsubscribe( this, m_sMessageOnStep );
} }