position: do_move() 中统一使用 to_sq()

This commit is contained in:
Calcitem 2020-09-20 16:26:23 +08:00
parent 76091ff4e2
commit e0ed37a13e
1 changed files with 1 additions and 1 deletions

View File

@ -402,7 +402,7 @@ void Position::do_move(Move m, StateInfo &newSt)
case MOVETYPE_REMOVE:
// Reset rule 50 counter
st->rule50 = 0;
ret = remove_piece(static_cast<Square>(-m));
ret = remove_piece(to_sq(m));
break;
case MOVETYPE_MOVE:
ret = move_piece(from_sq(m), to_sq(m));