automated commit by check50 [check50=True]

This commit is contained in:
kukemuna 2024-02-27 20:39:17 +02:00
parent 848877c817
commit 83872efa5b
1 changed files with 3 additions and 2 deletions

View File

@ -146,9 +146,10 @@ void tabulate(void)
{
for (int j = 0; j < candidate_count; j++)
{
if (preferences[i][0] == j && !candidates[j].eliminated)
if (candidates[preferences[i][j]].eliminated == false)
{
candidates[j].votes++;
candidates[preferences[i][j]].votes++;
break;
}
}
}