Lua indices are 1-based

This commit is contained in:
nein.wtf 2022-02-24 16:08:28 +01:00
commit daba7a2010
2 changed files with 1 additions and 1 deletions

View file

@ -62,7 +62,7 @@ Write('<p>' .. description .. ' <span class="last-update">Last update: ' .. rows
Write('<span class="count">')
for i=1,rows[1]["sum_deaths"] do
Write('')
if i > 0 and i < rows[1]["sum_deaths"] and i % 100 == 0 then
if i < rows[1]["sum_deaths"] and i % 100 == 0 then
Write('</span><span class="count">')
end
end