addMills() 中减少 iter 重复赋值

This commit is contained in:
Calcitem 2019-12-06 00:19:33 +08:00
parent 0498c5ebc7
commit 23cb1f4e91
1 changed files with 3 additions and 2 deletions

View File

@ -296,9 +296,10 @@ int Board::addMills(square_t square)
auto iter = millList.begin();
// 遍历
for (iter = millList.begin(); iter != millList.end(); iter++) {
if (mill == *iter)
for ( ; iter != millList.end(); iter++) {
if (mill == *iter) {
break;
}
}
// 如果没找到历史项