Skip to content

Commit 542eafc

Browse files
authored
votemanager: fix warning after cancelling a vote and choosing some option (#314)
1 parent ba05022 commit 542eafc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

[managers]/votemanager/votemanager_client.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ function sendVote(voteID)
320320

321321
--if the player hasnt voted already (or if vote change is allowed anyway), update the vote text
322322
if not hasAlreadyVoted or isChangeAllowed then
323-
if hasAlreadyVoted then
323+
if hasAlreadyVoted and hasAlreadyVoted ~= -1 then
324324
guiSetFont(optionLabels[hasAlreadyVoted], layout.option.font)
325325
guiSetAlpha(optionLabels[hasAlreadyVoted], layout.option.alpha)
326326
guiLabelSetColor(optionLabels[hasAlreadyVoted], layout.option.r, layout.option.g, layout.option.b)

0 commit comments

Comments
 (0)