fix compile
This commit is contained in:
@@ -395,6 +395,7 @@ bool SMLoader::LoadEdit( CString sEditFilePath )
|
|||||||
int iNumParams = msd.GetNumParams(i);
|
int iNumParams = msd.GetNumParams(i);
|
||||||
const MsdFile::value_t &sParams = msd.GetValue(i);
|
const MsdFile::value_t &sParams = msd.GetValue(i);
|
||||||
const CString sValueName = sParams[0];
|
const CString sValueName = sParams[0];
|
||||||
|
CString sSongFullTitle;
|
||||||
|
|
||||||
// handle the data
|
// handle the data
|
||||||
if( 0==stricmp(sValueName,"SONG") )
|
if( 0==stricmp(sValueName,"SONG") )
|
||||||
@@ -405,7 +406,7 @@ bool SMLoader::LoadEdit( CString sEditFilePath )
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
CString& sSongFullTitle = sParams[1];
|
sSongFullTitle = sParams[1];
|
||||||
sSongFullTitle.Replace( '\\', '/' );
|
sSongFullTitle.Replace( '\\', '/' );
|
||||||
|
|
||||||
pSong = SONGMAN->FindSong( sSongFullTitle );
|
pSong = SONGMAN->FindSong( sSongFullTitle );
|
||||||
@@ -435,7 +436,7 @@ bool SMLoader::LoadEdit( CString sEditFilePath )
|
|||||||
}
|
}
|
||||||
|
|
||||||
LoadFromSMTokens(
|
LoadFromSMTokens(
|
||||||
sParams[1], sParams[2], sParams[3], sParams[4], sParams[5], sParams[6], (iNumParams>=8)?sParams[7]:"",
|
sSongFullTitle, sParams[2], sParams[3], sParams[4], sParams[5], sParams[6], (iNumParams>=8)?sParams[7]:"",
|
||||||
*pNewNotes);
|
*pNewNotes);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user