[tools] Fix castling moves counting towards # captures in gather_statistics (#4283)

This commit is contained in:
Linmiao Xu
2022-12-12 16:55:39 -05:00
committed by GitHub
parent 399d556c27
commit 073d71a36b
+1 -1
View File
@@ -650,7 +650,7 @@ namespace Stockfish::Tools::Stats
{
m_total += 1;
if (!pos.empty(to_sq(move)))
if (!pos.empty(to_sq(move)) && type_of(move) != CASTLING)
m_capture += 1;
if (type_of(move) == CASTLING)