]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix Vote Relay (#23670)
authorPancake <Pangogie@users.noreply.github.com>
Sun, 7 Jan 2024 22:38:16 +0000 (14:38 -0800)
committerGitHub <noreply@github.com>
Sun, 7 Jan 2024 22:38:16 +0000 (16:38 -0600)
Update VoteCommands.cs

Pretty sure this is it.

Content.Server/Voting/VoteCommands.cs

index aad0ee43d742deb1a09eaabfaee144e75597b86a..3c792dc6252fade112324276fb4f27258d0b3661 100644 (file)
@@ -171,7 +171,7 @@ namespace Content.Server.Voting
                     chatMgr.DispatchServerAnnouncement(Loc.GetString("cmd-customvote-on-finished-win",("winner", args[(int) eventArgs.Winner])));
                 }
 
-                for (int i = 0; i < eventArgs.Votes.Count - 1; i++)
+                for (int i = 0; i < eventArgs.Votes.Count; i++)
                 {
                     var oldName = payload.Embeds[0].Fields[i].Name;
                     var newValue = eventArgs.Votes[i].ToString();