mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-06-28 11:45:33 +02:00
Fixed ConcurrentModificationException in Game.saveScores Closes #882
This commit is contained in:
parent
44b7b25b43
commit
c76b1b994f
|
@ -240,7 +240,10 @@ public abstract class Game implements Runnable {
|
|||
if (this.room == null)
|
||||
return;
|
||||
|
||||
for (Map.Entry<GameTeamColors, GameTeam> teamEntry : this.teams.entrySet()) {
|
||||
THashMap<GameTeamColors, GameTeam> teamsCopy = new THashMap<>();
|
||||
teamsCopy.putAll(this.teams);
|
||||
|
||||
for (Map.Entry<GameTeamColors, GameTeam> teamEntry : teamsCopy.entrySet()) {
|
||||
Emulator.getThreading().run(new SaveScoreForTeam(teamEntry.getValue(), this));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user