mirror of https://github.com/me50/kukemuna.git
automated commit by check50 [check50=True]
This commit is contained in:
parent
848877c817
commit
83872efa5b
5
runoff.c
5
runoff.c
|
|
@ -146,9 +146,10 @@ void tabulate(void)
|
||||||
{
|
{
|
||||||
for (int j = 0; j < candidate_count; j++)
|
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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue