mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-19 22:48:18 +00:00
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:
commit
516c1cc599
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue