From 0f3a74d97445ebc1cc20479481c99df25d29f62d Mon Sep 17 00:00:00 2001 From: Josh Hofing Date: Tue, 15 Jan 2013 10:08:33 -0500 Subject: [PATCH] Conway4 needed to change for the new patch.clone() --- src/rules/Conway4.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rules/Conway4.java b/src/rules/Conway4.java index bf6f9e9..0dd8aa9 100644 --- a/src/rules/Conway4.java +++ b/src/rules/Conway4.java @@ -15,7 +15,7 @@ public class Conway4 extends RuleSet { int numAlive = 0; for (Patch p : neighbors) if (p.getState() == 1) numAlive++; - Patch p = g.getPatch(i,j).clone(); + Patch p = g.getPatch(i,j).clone(newGrid); if (numAlive < 2) { p.setState(0); //Dies by underpopulation }