Skip to content

Commit

Permalink
ignore empty steps when calculating radar values
Browse files Browse the repository at this point in the history
  • Loading branch information
MinaciousGrace committed Jun 15, 2017
1 parent 595c2b8 commit 41fe93c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Steps.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,10 @@ void Steps::CalculateRadarValues( float fMusicLengthSeconds ) {

m_CachedRadarValues.Zero();

// skip anything that uhh, doesn't have any notes to calculate radar values from?
if (m_pNoteData->GetNumTracks() == 0)
return;

// this is only ever called from copyfrom and recalculateradarvalues
// the former is obsolete and in the case of the latter we know
// the note data is decompressed already, so, we don't need to copy(?)
Expand Down

0 comments on commit 41fe93c

Please sign in to comment.