Skip to content

Commit

Permalink
Fix 0 IQ PlayerAI replay data load bool check
Browse files Browse the repository at this point in the history
  • Loading branch information
poco0317 committed Nov 17, 2018
1 parent fb5ca86 commit cc09585
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/PlayerAI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -155,11 +155,16 @@ PlayerAI::GetTapNoteScoreForReplay(const PlayerState* pPlayerState,
void
PlayerAI::SetScoreData(HighScore* pHighScore)
{
pHighScore->LoadReplayData();
bool successful = pHighScore->LoadReplayData();
pScoreData = pHighScore;
m_ReplayTapMap.clear();
m_ReplayHoldMap.clear();

if (!successful)
{
return;
}

auto replayNoteRowVector = pHighScore->GetCopyOfNoteRowVector();
auto replayOffsetVector = pHighScore->GetCopyOfOffsetVector();
auto replayTapNoteTypeVector = pHighScore->GetCopyOfTapNoteTypeVector();
Expand Down

0 comments on commit cc09585

Please sign in to comment.