Skip to content
Snippets Groups Projects
Commit 0c662aea authored by Joseph Walton-Rivers's avatar Joseph Walton-Rivers
Browse files

ok, this should fix the thing which I didn't fix before (cloning frames)

parent 6ebca243
No related branches found
No related tags found
No related merge requests found
......@@ -41,8 +41,13 @@ public class SimpleBattle {
int currentTick;
public SimpleBattle() {
this(true);
}
public SimpleBattle(boolean visible) {
this.objects = new ArrayList<>();
this.stats = new ArrayList<>();
this.visible = visible;
if (visible) {
view = new BattleView(this);
......@@ -126,7 +131,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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment