diff options
Diffstat (limited to 'src/ch/epfl/maze')
-rw-r--r-- | src/ch/epfl/maze/physical/Daedalus.java | 4 |
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 | } |