diff --git a/stepmania/src/MeterDisplay.cpp b/stepmania/src/MeterDisplay.cpp index b50dbc6c5d..afcbb0bb4b 100644 --- a/stepmania/src/MeterDisplay.cpp +++ b/stepmania/src/MeterDisplay.cpp @@ -33,11 +33,9 @@ void MeterDisplay::LoadFromNode( const XNode* pNode ) { LOG->Trace( "MeterDisplay::LoadFromNode(%s,node)", ActorUtil::GetWhere(pNode).c_str() ); - RString sExpr; - if( !pNode->GetAttrValue( "StreamWidth", sExpr ) ) + if( !pNode->GetAttrValue("StreamWidth", m_fStreamWidth) ) RageException::Throw( "%s: MeterDisplay: missing the \"StreamWidth\" attribute", ActorUtil::GetWhere(pNode).c_str() ); - m_fStreamWidth=StringToFloat(sExpr); { RString sStreamPath; if( !ActorUtil::GetAttrPath(pNode, "StreamPath", sStreamPath) )