use ActorUtil::GetAttrPath
This commit is contained in:
@@ -28,12 +28,9 @@ void HoldJudgment::Load( const RString &sPath )
|
||||
void HoldJudgment::LoadFromNode( const RString& sDir, const XNode* pNode )
|
||||
{
|
||||
RString sFile;
|
||||
if( !pNode->GetAttrValue("File", sFile) )
|
||||
if( ActorUtil::GetAttrPath(pNode, "File", sFile) )
|
||||
RageException::Throw( "HoldJudgment node in \"%s\" is missing the attribute \"File\"", sDir.c_str() );
|
||||
|
||||
if( sFile.Left(1) != "/" )
|
||||
sFile = sDir+sFile;
|
||||
|
||||
CollapsePath( sFile );
|
||||
|
||||
Load( sFile );
|
||||
|
||||
Reference in New Issue
Block a user