Fix erroneous "unable to find all characters" message

This commit is contained in:
Zwelf 2020-07-02 16:34:36 +02:00
parent e39a53d379
commit 17bb4522fc

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++;
}