Explorar el Código

Patch.clone() takes a Grid.

master
Ben Kurtovic hace 11 años
padre
commit
fcdb30a1f7
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. +2
    -2
      src/Patch.java

+ 2
- 2
src/Patch.java Ver fichero

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

Cargando…
Cancelar
Guardar