Don't create a loader.

This commit is contained in:
Steve Checkoway
2007-02-14 10:09:05 +00:00
parent 6c8ddaec73
commit 1b2c9da350
5 changed files with 7 additions and 11 deletions
+3 -3
View File
@@ -207,9 +207,9 @@ bool Song::LoadFromSongDir( RString sDir )
if( bUseCache )
{
// LOG->Trace( "Loading '%s' from cache file '%s'.", m_sSongDir.c_str(), GetCacheFilePath().c_str() );
SMLoader ld;
ld.LoadFromSMFile( GetCacheFilePath(), *this, true );
ld.TidyUpData( *this, true );
SMLoader::LoadFromSMFile( GetCacheFilePath(), *this, true );
// XXX: This shouldn't really be a non-static member function.
SMLoader().TidyUpData( *this, true );
}
else
{