Votes work again (#62973)

So, it was runtiming because it wasn't checking for the length of the list, so it was failing to display the results and failing to do anything about the results of said vote. That means map votes didn't do anything.
This commit is contained in:
GoldenAlpharex
2021-11-20 19:55:04 -05:00
committed by GitHub
parent ea646b008d
commit 08e8656dcc

View File

@@ -86,7 +86,7 @@ SUBSYSTEM_DEF(vote)
text += "<b>[question]</b>"
else
text += "<b>[capitalize(mode)] Vote</b>"
for(var/i in 1 to choices)
for(var/i in 1 to choices.len)
var/votes = choices[choices[i]]
if(!votes)
votes = 0