diff --git a/stepmania/src/Actor.cpp b/stepmania/src/Actor.cpp index 91a2060b4e..960da261c4 100644 --- a/stepmania/src/Actor.cpp +++ b/stepmania/src/Actor.cpp @@ -263,11 +263,7 @@ void Actor::LoadFromNode( const RString& sDir, const XNode* pNode ) // Load Name, if any. const RString &sKeyName = pAttr->first; const RString &sValue = pAttr->second; - if( sKeyName == "Name" ) - { - m_sName = sValue; - } - + if( sKeyName == "Name" ) SetName( sValue ); else if( sKeyName == "BaseRotationX" ) SetBaseRotationX( StringToFloat(sValue) ); else if( sKeyName == "BaseRotationY" ) SetBaseRotationY( StringToFloat(sValue) ); else if( sKeyName == "BaseRotationZ" ) SetBaseRotationZ( StringToFloat(sValue) );