Skip to content

Commit

Permalink
Fix edit mode crashing on note judgment, return NonEmptyRowVector by …
Browse files Browse the repository at this point in the history
…reference since it's not a temporary.
  • Loading branch information
xwidghet committed Oct 31, 2016
1 parent dd0c1f9 commit b5be683
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/Player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3161,7 +3161,10 @@ void Player::SetJudgment( int iRow, int iTrack, const TapNote &tn, TapNoteScore
msg.SetParam( "NoteRow", iRow);
msg.SetParam( "Type", static_cast<RString>("Tap"));
msg.SetParam( "TapNoteOffset", tn.result.fTapNoteOffset );
msg.SetParam( "Val", m_pPlayerStageStats->m_iTapNoteScores[tns] + 1);
if ( m_pPlayerStageStats != NULL )
{
msg.SetParam("Val", m_pPlayerStageStats->m_iTapNoteScores[tns] + 1);
}

if (tns != TNS_Miss)
msg.SetParam("Offset", tn.result.fTapNoteOffset * 1000); // don't send out 0 ms offsets for misses, multiply by 1000 for convenience - Mina
Expand Down
2 changes: 1 addition & 1 deletion src/Steps.h
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ class Steps
/* Needs to be generated with notedata and stored in notedata. - Mina */

vector<int> NonEmptyRowVector;
vector<int> GetNonEmptyRowVector() { return NonEmptyRowVector; };
vector<int>& GetNonEmptyRowVector() { return NonEmptyRowVector; };

/* Needs to be generated with timingdata and stored in timingdata - Mina */

Expand Down

0 comments on commit b5be683

Please sign in to comment.