Assorted cleanups

Assorted cleanups

closes https://github.com/official-stockfish/Stockfish/pull/5046

No functional change

Co-Authored-By: Shahin M. Shahin <41402573+peregrineshahin@users.noreply.github.com>
Co-Authored-By: cj5716 <125858804+cj5716@users.noreply.github.com>
This commit is contained in:
Disservin
2024-02-10 13:58:38 +01:00
parent 3d5b16df7c
commit 9068fdc57b
6 changed files with 25 additions and 39 deletions

View File

@@ -173,7 +173,7 @@ void MovePicker::score() {
else if constexpr (Type == QUIETS)
{
Piece pc = pos.moved_piece(m);
PieceType pt = type_of(pos.moved_piece(m));
PieceType pt = type_of(pc);
Square from = m.from_sq();
Square to = m.to_sq();