Fix crash

This commit is contained in:
def 2019-01-10 21:11:23 +01:00
parent b3ca67e944
commit 22ea30a7f5

View file

@ -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);