Skip to content

Commit

Permalink
Fix new song caching crashing when a song has a difficulty no notes.
Browse files Browse the repository at this point in the history
  • Loading branch information
xwidghet committed Jun 15, 2017
1 parent 3951fd3 commit 920d502
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Song.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1068,6 +1068,10 @@ void Song::ReCalculateRadarValuesAndLastSecond(bool fromCache, bool duringCache)
for (auto& n : m_vpSteps) {
// Cache etterna stuff and 'radar values'

// Skip difficulties without notes
if (n->IsNoteDataEmpty())
continue;

// only ever decompress the notedata when writing the cache file
// for this we don't use the etterna compressed format -mina
n->Decompress();
Expand Down

0 comments on commit 920d502

Please sign in to comment.