From 61407da73e6ce40250bf69f2eb1864b0da7b9172 Mon Sep 17 00:00:00 2001 From: Nicolas Date: Fri, 24 Aug 2018 16:47:30 -0300 Subject: [PATCH] These methods return copies, not references --- src/PlayerAI.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/PlayerAI.cpp b/src/PlayerAI.cpp index b851498764..2a3700c59a 100644 --- a/src/PlayerAI.cpp +++ b/src/PlayerAI.cpp @@ -155,10 +155,10 @@ float PlayerAI::GetTapNoteOffsetForReplay(TapNote* pTN, int noteRow, int col) // Replay Data format: [noterow] [offset] [track] [optional: tap note type] - vector& noteRowVector = pScoreData->GetCopyOfNoteRowVector(); - vector& offsetVector = pScoreData->GetCopyOfOffsetVector(); - vector& tntVector = pScoreData->GetCopyOfTapNoteTypeVector(); - vector& trackVector = pScoreData->GetCopyOfTrackVector(); + vector noteRowVector = pScoreData->GetCopyOfNoteRowVector(); + vector offsetVector = pScoreData->GetCopyOfOffsetVector(); + vector tntVector = pScoreData->GetCopyOfTapNoteTypeVector(); + vector trackVector = pScoreData->GetCopyOfTrackVector(); /*std::string s = std::to_string(noteRow); char const* nr1 = s.c_str(); std::string lmao = std::to_string(noteRowVector.size());