diff --git a/stepmania/src/RageSoundReader_Chain.cpp b/stepmania/src/RageSoundReader_Chain.cpp index ebe4ffba11..227d8c877e 100644 --- a/stepmania/src/RageSoundReader_Chain.cpp +++ b/stepmania/src/RageSoundReader_Chain.cpp @@ -53,12 +53,12 @@ bool RageSoundReader_Chain::AddSound( RString sPath, float fOffsetSecs, float fP it = m_apLoadedSounds.find( sPath ); if( it == m_apLoadedSounds.end() ) { - RString error; - RageSoundReader *pReader = RageSoundReader_FileReader::OpenFile( sPath, error ); + RString sError; + RageSoundReader *pReader = RageSoundReader_FileReader::OpenFile( sPath, sError ); if( pReader == NULL ) { LOG->Warn( "RageSoundReader_Chain: error opening sound \"%s\": %s", - sPath.c_str(), error.c_str() ); + sPath.c_str(), sError.c_str() ); return false; }