Actually check all tees. Fixes #3697

This commit is contained in:
Learath2 2021-03-20 15:45:11 +01:00
parent e668039407
commit a3dd47d7e8

View file

@ -1868,7 +1868,7 @@ bool CScore::LoadTeamThread(IDbConnection *pSqlServer, const ISqlData *pGameData
bool Found = false;
for(int i = 0; i < pResult->m_SavedTeam.GetMembersCount(); i++)
{
if(str_comp(pResult->m_SavedTeam.m_pSavedTees->GetName(), pData->m_RequestingPlayer) == 0)
if(str_comp(pResult->m_SavedTeam.m_pSavedTees[i].GetName(), pData->m_RequestingPlayer) == 0)
{
Found = true;
break;