Skip to content

Commit

Permalink
Solved the issue where a song located directly in the Songs folder wo…
Browse files Browse the repository at this point in the history
…uld crash the game instantly, it now loads into a group called "Songs"

fixes maybe

set group for stray songs in the song folders as "Ungrouped Songs"

also efficiency changes
  • Loading branch information
MinaciousGrace committed Nov 27, 2018
1 parent 13581f7 commit fefadeb
Show file tree
Hide file tree
Showing 4 changed files with 199 additions and 173 deletions.
2 changes: 1 addition & 1 deletion src/Player.cpp
Expand Up @@ -3523,7 +3523,7 @@ Player::RenderAllNotesIgnoreScores()
// Find the tapnote we are on
TapNote* pTN = NULL;
NoteData::iterator iter = m_NoteData.FindTapNote(track, row);
DEBUG_ASSERT(iter != m_NoteData.end(col));
DEBUG_ASSERT(iter != m_NoteData.end(track));
pTN = &iter->second;

// Reset the score so it can be visible
Expand Down
2 changes: 1 addition & 1 deletion src/Song.cpp
Expand Up @@ -379,7 +379,7 @@ Song::FinalizeLoading()
// save group name
vector<RString> sDirectoryParts;
split(m_sSongDir, "/", sDirectoryParts, false);
ASSERT(sDirectoryParts.size() >= 4); /* e.g. "/Songs/Slow/Taps/" */
// ASSERT(sDirectoryParts.size() >= 4); /* e.g. "/Songs/Slow/Taps/" */
m_sGroupName =
sDirectoryParts[sDirectoryParts.size() - 3]; // second from last item
ASSERT(m_sGroupName != "");
Expand Down

0 comments on commit fefadeb

Please sign in to comment.