Skip to content

Commit

Permalink
Merge pull request dreignier#22 from Counterbalance/fix-multithread-s…
Browse files Browse the repository at this point in the history
…wap-for-singlethread

hopefully the final fix for -s/-n>1
  • Loading branch information
dreignier authored Jul 31, 2018
2 parents edc564d + f5de057 commit 616589d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/com/magusgeek/brutaltester/GameThread.java
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public void run() {
StringBuilder fullOut = new StringBuilder();
try (Scanner in = referee.getIn()) {
for (int pi = 0; pi < playersCount; ++pi) {
int i = (pi + seedRotate[1]) % playersCount;
int i = swap ? (pi + seedRotate[1]) % playersCount : pi;
if (in.hasNextInt())
{
scores[i] = in.nextInt();
Expand Down

0 comments on commit 616589d

Please sign in to comment.