fix inconsistency between StepsID::FromSteps and StepsID::LoadFromNode

causing song scores to not be found
This commit is contained in:
Glenn Maynard
2004-05-01 21:53:28 +00:00
parent 66e65849da
commit 197ec50a66
+9
View File
@@ -135,8 +135,14 @@ void StepsID::FromSteps( const Steps *p )
{ {
st = p->m_StepsType; st = p->m_StepsType;
dc = p->GetDifficulty(); dc = p->GetDifficulty();
if( dc == DIFFICULTY_EDIT )
{
sDescription = p->GetDescription(); sDescription = p->GetDescription();
uHash = p->GetHash(); uHash = p->GetHash();
} else {
sDescription = "";
uHash = 0;
}
} }
} }
@@ -197,6 +203,9 @@ void StepsID::LoadFromNode( const XNode* pNode )
{ {
pNode->GetAttrValue("Description", sDescription); pNode->GetAttrValue("Description", sDescription);
pNode->GetAttrValue("Hash", uHash); pNode->GetAttrValue("Hash", uHash);
} else {
sDescription = "";
uHash = 0;
} }
} }