Fix vote count ordering: Include votes for 0 (#998)

Off by one error: 0 [votes] has to be included
master
Lars Müller 2022-03-19 19:08:19 +01:00 committed by GitHub
parent 69d8cabc76
commit e1e83c4be6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -105,7 +105,7 @@ function ctf_modebase.mode_vote.end_vote()
local votes_result = ""
local average_vote = 0
local entry_count = 0
for length = 1, MAX_ROUNDS do
for length = 0, MAX_ROUNDS do
local vote_count = length_votes[length]
if vote_count then
votes_result = votes_result .. string.format(