mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Merge #2444
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:
commit
7266bcad78
|
@ -436,10 +436,10 @@ int CSaveTeam::save(int Team)
|
||||||
CCharacter *p = (CCharacter *)m_pController->GameServer()->m_World.FindFirst(CGameWorld::ENTTYPE_CHARACTER);
|
CCharacter *p = (CCharacter *)m_pController->GameServer()->m_World.FindFirst(CGameWorld::ENTTYPE_CHARACTER);
|
||||||
for(; p; p = (CCharacter *)p->TypeNext())
|
for(; p; p = (CCharacter *)p->TypeNext())
|
||||||
{
|
{
|
||||||
if(m_MembersCount == j)
|
|
||||||
return 3;
|
|
||||||
if(Teams->m_Core.Team(p->GetPlayer()->GetCID()) != Team)
|
if(Teams->m_Core.Team(p->GetPlayer()->GetCID()) != Team)
|
||||||
continue;
|
continue;
|
||||||
|
if(m_MembersCount == j)
|
||||||
|
return 3;
|
||||||
m_pSavedTees[j].save(p);
|
m_pSavedTees[j].save(p);
|
||||||
j++;
|
j++;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue