[MIRROR] [FUCK] Votes work again [MDB IGNORE] (#9593)

* 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.

* [FUCK] Votes work again

Co-authored-by: GoldenAlpharex <58045821+GoldenAlpharex@users.noreply.github.com>
This commit is contained in:
SkyratBot
2021-11-21 01:10:24 +00:00
committed by GitHub
parent 6d1769a234
commit 47dc6ab03d

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