From bafb9e0f2b03ea6e6bbc795186870eb576f7c1aa Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Wed, 30 Jul 2003 05:28:23 +0000 Subject: [PATCH] Somehow, songs seem to be missing groups when we check them in SongManager::GetExtraStageInfo. Sanity check. --- stepmania/src/Song.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stepmania/src/Song.cpp b/stepmania/src/Song.cpp index c66c15b6ba..33f201f38c 100644 --- a/stepmania/src/Song.cpp +++ b/stepmania/src/Song.cpp @@ -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)