mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
Fix crash
This commit is contained in:
parent
b3ca67e944
commit
22ea30a7f5
|
@ -180,8 +180,8 @@ void CGameTeams::CheckTeamFinished(int Team)
|
|||
if (Time < 0.000001f)
|
||||
return;
|
||||
|
||||
for (auto pPlayer : TeamPlayers)
|
||||
OnFinish(pPlayer, Time);
|
||||
for (unsigned int i = 0; i < PlayersCount; ++i)
|
||||
OnFinish(TeamPlayers[i], Time);
|
||||
ChangeTeamState(Team, TEAMSTATE_FINISHED); //TODO: Make it better
|
||||
//ChangeTeamState(Team, TEAMSTATE_OPEN);
|
||||
OnTeamFinish(TeamPlayers, PlayersCount, Time);
|
||||
|
|
Loading…
Reference in a new issue