stop accessing m_vpSteps directly

This commit is contained in:
Glenn Maynard
2004-06-05 05:13:23 +00:00
parent d44be247d0
commit 2ca100eaad
5 changed files with 9 additions and 6 deletions
+2 -2
View File
@@ -336,7 +336,7 @@ bool SMLoader::LoadFromSMFile( CString sPath, Song &out )
{
Steps* pNewNotes = new Steps;
ASSERT( pNewNotes );
out.m_vpSteps.push_back( pNewNotes );
out.AddSteps( pNewNotes );
if( iNumParams < 7 )
{
@@ -456,7 +456,7 @@ bool SMLoader::LoadEdit( CString sEditFilePath, ProfileSlot slot )
return false;
}
pSong->m_vpSteps.push_back( pNewNotes );
pSong->AddSteps( pNewNotes );
return true; // Only allow one Steps per edit file!
}
else