瀏覽代碼

Patch.clone() takes a Grid.

master
Ben Kurtovic 12 年之前
父節點
當前提交
fcdb30a1f7
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      src/Patch.java

+ 2
- 2
src/Patch.java 查看文件

@@ -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…
取消
儲存