mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 07:27:46 +00:00
Fixed a bug that White and Black are reversed.
This commit is contained in:
@@ -134,7 +134,7 @@ void AddExample(Position& pos, Color rootColor,
|
|||||||
for (const auto trigger : kRefreshTriggers) {
|
for (const auto trigger : kRefreshTriggers) {
|
||||||
RawFeatures::AppendActiveIndices(pos, trigger, active_indices);
|
RawFeatures::AppendActiveIndices(pos, trigger, active_indices);
|
||||||
}
|
}
|
||||||
if (pos.side_to_move() != BLACK) {
|
if (pos.side_to_move() != WHITE) {
|
||||||
active_indices[0].swap(active_indices[1]);
|
active_indices[0].swap(active_indices[1]);
|
||||||
}
|
}
|
||||||
for (const auto color : Colors) {
|
for (const auto color : Colors) {
|
||||||
|
|||||||
Reference in New Issue
Block a user