Merge pull request #3382 from Zwelf/pr-fix-race-condition

Fix storing load/save result in main thread without incrementing usage count
This commit is contained in:
Dennis Felsing 2020-12-04 11:48:14 +01:00 committed by GitHub
commit 516c1cc599
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -123,9 +123,9 @@ public:
m_TeeFinished[ClientID] = finished;
}
void SetSaving(int TeamID, std::shared_ptr<CScoreSaveResult> SaveResult)
void SetSaving(int TeamID, std::shared_ptr<CScoreSaveResult> &SaveResult)
{
m_pSaveTeamResult[TeamID] = std::move(SaveResult);
m_pSaveTeamResult[TeamID] = SaveResult;
}
bool GetSaving(int TeamID)