浏览代码

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

正在加载...
取消
保存