From 197ec50a6680663ffd7788a2854170e407f91f82 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Sat, 1 May 2004 21:53:28 +0000 Subject: [PATCH] fix inconsistency between StepsID::FromSteps and StepsID::LoadFromNode causing song scores to not be found --- stepmania/src/StepsUtil.cpp | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/stepmania/src/StepsUtil.cpp b/stepmania/src/StepsUtil.cpp index 546acf9c32..7d824a37c3 100644 --- a/stepmania/src/StepsUtil.cpp +++ b/stepmania/src/StepsUtil.cpp @@ -135,8 +135,14 @@ void StepsID::FromSteps( const Steps *p ) { st = p->m_StepsType; dc = p->GetDifficulty(); - sDescription = p->GetDescription(); - uHash = p->GetHash(); + if( dc == DIFFICULTY_EDIT ) + { + sDescription = p->GetDescription(); + uHash = p->GetHash(); + } else { + sDescription = ""; + uHash = 0; + } } } @@ -197,6 +203,9 @@ void StepsID::LoadFromNode( const XNode* pNode ) { pNode->GetAttrValue("Description", sDescription); pNode->GetAttrValue("Hash", uHash); + } else { + sDescription = ""; + uHash = 0; } }