Skip to content

Commit

Permalink
hotfix crash for null steps objects
Browse files Browse the repository at this point in the history
  • Loading branch information
MinaciousGrace committed Dec 25, 2016
1 parent dcb5647 commit 081c546
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Profile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2157,7 +2157,10 @@ void Profile::RecalculateSSRs(bool OnlyOld) {
if (!sid.IsValid())
continue;

Steps* psteps= sid.ToSteps(psong, false);
Steps* psteps= sid.ToSteps(psong, true);
if (!psteps)
continue;

auto nd = psteps->GetNoteData();
TimingData* td = psteps->GetTimingData();
float musicrate = hsv[i].GetMusicRate();
Expand Down

0 comments on commit 081c546

Please sign in to comment.