Skip to content

Commit

Permalink
These methods return copies, not references
Browse files Browse the repository at this point in the history
  • Loading branch information
nico-abram authored Aug 24, 2018
1 parent 9f35751 commit 61407da
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/PlayerAI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -155,10 +155,10 @@ float PlayerAI::GetTapNoteOffsetForReplay(TapNote* pTN, int noteRow, int col)

// Replay Data format: [noterow] [offset] [track] [optional: tap note type]

vector<int>& noteRowVector = pScoreData->GetCopyOfNoteRowVector();
vector<float>& offsetVector = pScoreData->GetCopyOfOffsetVector();
vector<TapNoteType>& tntVector = pScoreData->GetCopyOfTapNoteTypeVector();
vector<int>& trackVector = pScoreData->GetCopyOfTrackVector();
vector<int> noteRowVector = pScoreData->GetCopyOfNoteRowVector();
vector<float> offsetVector = pScoreData->GetCopyOfOffsetVector();
vector<TapNoteType> tntVector = pScoreData->GetCopyOfTapNoteTypeVector();
vector<int> trackVector = pScoreData->GetCopyOfTrackVector();
/*std::string s = std::to_string(noteRow);
char const* nr1 = s.c_str();
std::string lmao = std::to_string(noteRowVector.size());
Expand Down

0 comments on commit 61407da

Please sign in to comment.