* Chorus of the Conclave - Fixed a problem with game copy logic (related to rollback and AI) (fixed #7195).

This commit is contained in:
LevelX2 2020-11-24 16:07:53 +01:00
parent 3bc3ca6a50
commit 137070d523
2 changed files with 56 additions and 0 deletions

View file

@ -167,6 +167,8 @@ public class GameState implements Serializable, Copyable<GameState> {
this.values.put(entry.getKey(), ((HashSet) entry.getValue()).clone());
} else if (entry.getValue() instanceof EnumSet) {
this.values.put(entry.getKey(), ((EnumSet) entry.getValue()).clone());
} else if (entry.getValue() instanceof HashMap){
this.values.put(entry.getKey(), ((HashMap) entry.getValue()).clone());
} else {
this.values.put(entry.getKey(), entry.getValue());
}