diff --git a/src/Player.cpp b/src/Player.cpp index 2c1b2d588c..d9dfa843b0 100644 --- a/src/Player.cpp +++ b/src/Player.cpp @@ -3161,7 +3161,10 @@ void Player::SetJudgment( int iRow, int iTrack, const TapNote &tn, TapNoteScore msg.SetParam( "NoteRow", iRow); msg.SetParam( "Type", static_cast("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 diff --git a/src/Steps.h b/src/Steps.h index 9c9c095232..32eaacfa45 100644 --- a/src/Steps.h +++ b/src/Steps.h @@ -166,7 +166,7 @@ class Steps /* Needs to be generated with notedata and stored in notedata. - Mina */ vector NonEmptyRowVector; - vector GetNonEmptyRowVector() { return NonEmptyRowVector; }; + vector& GetNonEmptyRowVector() { return NonEmptyRowVector; }; /* Needs to be generated with timingdata and stored in timingdata - Mina */