Parcourir la source

Patch.clone() takes a Grid.

master
Ben Kurtovic il y a 11 ans
Parent
révision
fcdb30a1f7
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. +2
    -2
      src/Patch.java

+ 2
- 2
src/Patch.java Voir le fichier

@@ -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);
}
}

Chargement…
Annuler
Enregistrer