From 4760ad0b0c80bfb0601e33925be2d9559163d8d3 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Tue, 29 May 2007 18:51:35 +0000 Subject: [PATCH] "Type" is correct here --- stepmania/src/DifficultyMeter.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stepmania/src/DifficultyMeter.cpp b/stepmania/src/DifficultyMeter.cpp index 03afacd0c1..01f24cfe95 100644 --- a/stepmania/src/DifficultyMeter.cpp +++ b/stepmania/src/DifficultyMeter.cpp @@ -97,8 +97,8 @@ void DifficultyMeter::LoadFromNode( const XNode* pNode ) ActorFrame::LoadFromNode( pNode ); RString s; - pNode->GetAttrValue( "Class", s ); - ASSERT( s.size() ); + if( !pNode->GetAttrValue("Type", s) ) + RageException::Throw( "%s: DifficultyMeter: missing the \"Type\" attribute", ActorUtil::GetWhere(pNode).c_str() ); Load( s ); }