fix inconsistency between StepsID::FromSteps and StepsID::LoadFromNode
causing song scores to not be found
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user