Somehow, songs seem to be missing groups when we check them

in SongManager::GetExtraStageInfo.  Sanity check.
This commit is contained in:
Glenn Maynard
2003-07-30 05:28:23 +00:00
parent ef7733e121
commit bafb9e0f2b
+2
View File
@@ -381,7 +381,9 @@ bool Song::LoadFromSongDir( CString sDir )
// save group name
CStringArray sDirectoryParts;
split( m_sSongDir, SLASH, sDirectoryParts, false );
ASSERT( sDirectoryParts.size() >= 4 ); /* Songs/Slow/Taps/ */
m_sGroupName = sDirectoryParts[sDirectoryParts.size()-3]; // second from last item
ASSERT( m_sGroupName != "" );
//
// First look in the cache for this song (without loading NoteData)