mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 06:17:49 +00:00
[tools] Fix castling moves counting towards # captures in gather_statistics (#4283)
This commit is contained in:
+1
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user