don't unsub if never loaded
This commit is contained in:
@@ -20,6 +20,7 @@ ScoreDisplayCalories::ScoreDisplayCalories()
|
|||||||
|
|
||||||
ScoreDisplayCalories::~ScoreDisplayCalories()
|
ScoreDisplayCalories::~ScoreDisplayCalories()
|
||||||
{
|
{
|
||||||
|
if( m_sMessageOnStep != "" )
|
||||||
MESSAGEMAN->Unsubscribe( this, m_sMessageOnStep );
|
MESSAGEMAN->Unsubscribe( this, m_sMessageOnStep );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user