2444: Fix erroneous "unable to find all characters" message r=heinrich5991 a=Zwelf

Fixes #2443 

Co-authored-by: Zwelf <zwelf@strct.cc>
This commit is contained in:
bors[bot] 2020-07-02 15:07:55 +00:00 committed by GitHub
commit 7266bcad78
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -436,10 +436,10 @@ int CSaveTeam::save(int Team)
CCharacter *p = (CCharacter *)m_pController->GameServer()->m_World.FindFirst(CGameWorld::ENTTYPE_CHARACTER);
for(; p; p = (CCharacter *)p->TypeNext())
{
if(m_MembersCount == j)
return 3;
if(Teams->m_Core.Team(p->GetPlayer()->GetCID()) != Team)
continue;
if(m_MembersCount == j)
return 3;
m_pSavedTees[j].save(p);
j++;
}