From 879fc98a8c5234ff24538378c0eeefebff315bef Mon Sep 17 00:00:00 2001 From: Kelenius Date: Thu, 9 Jul 2015 11:50:42 +0300 Subject: [PATCH] Fixes #9894 --- code/controllers/voting.dm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/code/controllers/voting.dm b/code/controllers/voting.dm index 939dd34e7e6..707880ff553 100644 --- a/code/controllers/voting.dm +++ b/code/controllers/voting.dm @@ -381,7 +381,9 @@ datum/controller/vote if(usr.client.holder) initiate_vote("custom",usr.key) else - submit_vote(usr.ckey, round(text2num(href_list["vote"]))) + var/t = round(text2num(href_list["vote"])) + if(t) // It starts from 1, so there's no problem + submit_vote(usr.ckey, t) usr.vote()