From 08e8656dcc9fa033d7635585fde3751bfef9b697 Mon Sep 17 00:00:00 2001 From: GoldenAlpharex <58045821+GoldenAlpharex@users.noreply.github.com> Date: Sat, 20 Nov 2021 19:55:04 -0500 Subject: [PATCH] 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. --- code/controllers/subsystem/vote.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/controllers/subsystem/vote.dm b/code/controllers/subsystem/vote.dm index 9a2ac22c043..557fd5c6625 100644 --- a/code/controllers/subsystem/vote.dm +++ b/code/controllers/subsystem/vote.dm @@ -86,7 +86,7 @@ SUBSYSTEM_DEF(vote) text += "[question]" else text += "[capitalize(mode)] Vote" - for(var/i in 1 to choices) + for(var/i in 1 to choices.len) var/votes = choices[choices[i]] if(!votes) votes = 0