summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPacien TRAN-GIRARD2016-01-21 13:02:29 +0100
committerPacien TRAN-GIRARD2016-01-21 13:02:29 +0100
commit1d8742eff592effe93c304a2aa67d494f2218a6f (patch)
tree89ca2257740d0e5f2d3b1fcec0e7e8e620c3260d /src
parent9bed3a9fea76689c6660c236d2b67e4f79c6e274 (diff)
downloadmaze-solver-master.tar.gz
Fix Daedalus resetHEADmaster
Diffstat (limited to 'src')
-rw-r--r--src/ch/epfl/maze/physical/Daedalus.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ch/epfl/maze/physical/Daedalus.java b/src/ch/epfl/maze/physical/Daedalus.java
index 0179156..f1dc9ff 100644
--- a/src/ch/epfl/maze/physical/Daedalus.java
+++ b/src/ch/epfl/maze/physical/Daedalus.java
@@ -150,10 +150,10 @@ public final class Daedalus extends World {
150 @Override 150 @Override
151 public void reset() { 151 public void reset() {
152 this.predators.clear(); 152 this.predators.clear();
153 this.predators.addAll(this.predatorHistory); 153 this.predatorHistory.forEach(p -> this.predators.add((Predator) p.copy()));
154 154
155 this.preys.clear(); 155 this.preys.clear();
156 this.preys.addAll(this.preyHistory); 156 this.preyHistory.forEach(p -> this.preys.add((Prey) p.copy()));
157 } 157 }
158 158
159} 159}