From e4916bd8bedd286c1ff9919cc5fb295bd4114d11 Mon Sep 17 00:00:00 2001
From: Joseph Walton-Rivers <jwalto@essex.ac.uk>
Date: Thu, 11 Jun 2015 15:22:22 +0100
Subject: [PATCH] ok, this should fix the thing which I didn't fix before
 (cloning frames)

---
 src/battle/SimpleBattle.java | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/battle/SimpleBattle.java b/src/battle/SimpleBattle.java
index cd717ec..db7c556 100644
--- a/src/battle/SimpleBattle.java
+++ b/src/battle/SimpleBattle.java
@@ -41,6 +41,10 @@ public class SimpleBattle {
     int currentTick;
 
     public SimpleBattle() {
+        this(true);
+    }
+
+    public SimpleBattle(boolean visible) {
         this.objects = new ArrayList<>();
         this.stats = new ArrayList<>();
 
@@ -126,7 +130,7 @@ public class SimpleBattle {
 
 
     public SimpleBattle clone() {
-        SimpleBattle state = new SimpleBattle();
+        SimpleBattle state = new SimpleBattle(false);
         state.objects = copyObjects();
         state.stats = copyStats();
         state.currentTick = currentTick;
-- 
GitLab