Merge pull request #7330 from Zwelf/pr-fix-save-dry

Fix save_dry command
This commit is contained in:
Dennis Felsing 2023-10-09 14:58:59 +00:00 committed by GitHub
commit 7171a8872e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -839,7 +839,8 @@ void CGameContext::ConDrySave(IConsole::IResult *pResult, void *pUserData)
return;
CSaveTeam SavedTeam;
int Result = SavedTeam.Save(pSelf, pPlayer->GetTeam(), true);
int Team = pSelf->GetDDRaceTeam(pResult->m_ClientID);
int Result = SavedTeam.Save(pSelf, Team, true);
if(CSaveTeam::HandleSaveError(Result, pResult->m_ClientID, pSelf))
return;