Browse Source

Patch.clone() takes a Grid.

master
Ben Kurtovic 11 years ago
parent
commit
fcdb30a1f7
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/Patch.java

+ 2
- 2
src/Patch.java View File

@@ -71,7 +71,7 @@ public class Patch {
return neighbors;
}

public Patch clone() {
return new Patch(_grid, _xcor, _ycor, _state, _label);
public Patch clone(Grid grid) {
return new Patch(grid, _xcor, _ycor, _state, _label);
}
}

Loading…
Cancel
Save