Skip to content

Commit

Permalink
When adding reference partitions to a partitioned vote, make sure to …
Browse files Browse the repository at this point in the history
…save any

existing portion of the vote (sb) before doing so.
  • Loading branch information
Kinematics committed Oct 23, 2015
1 parent bc153ee commit 0740179
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions TallyCore/Votes/VoteConstructor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -533,6 +533,11 @@ private void PartitionReferrals(List<string> partitions, StringBuilder sb, List<
}
else
{
if (sb.Length > 0)
{
partitions.Add(sb.ToString());
sb.Clear();
}
partitions.AddRange(referralVotes);
}
}
Expand Down

0 comments on commit 0740179

Please sign in to comment.