From d8a75ce90e0a4cf2cde42d0d827e245840987652 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Tue, 17 Oct 2006 09:02:13 +0000 Subject: [PATCH] only one of sPath and sFullTitle may be set --- stepmania/src/CourseUtil.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/stepmania/src/CourseUtil.cpp b/stepmania/src/CourseUtil.cpp index 404ba5caa0..66a77c223e 100644 --- a/stepmania/src/CourseUtil.cpp +++ b/stepmania/src/CourseUtil.cpp @@ -389,8 +389,10 @@ XNode* CourseID::CreateNode() const void CourseID::LoadFromNode( const XNode* pNode ) { ASSERT( pNode->GetName() == "Course" ); - pNode->GetAttrValue("Path", sPath); - pNode->GetAttrValue("FullTitle", sFullTitle); + sFullTitle = RString(); + sPath = RString(); + if( !pNode->GetAttrValue("Path", sPath) ) + pNode->GetAttrValue( "FullTitle", sFullTitle ); } RString CourseID::ToString() const