flutter: 修改 moves 中未 remove 类型的判断方式即改为文本判断
This commit is contained in:
parent
ef06033e16
commit
fc796a7a27
|
@ -1491,7 +1491,8 @@ class Position {
|
|||
print("recorder.movesCount = ${recorder.movesCount}");
|
||||
|
||||
for (int i = recorder.movesCount - 1; i >= 0; i--) {
|
||||
if (recorder.moveAt(i).type == MoveType.remove) break;
|
||||
//if (recorder.moveAt(i).type == MoveType.remove) break;
|
||||
if (recorder.moveAt(i).move[0] == '-') break;
|
||||
posAfterLastRemove = i;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue