1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-05-01 17:19:36 +00:00

Fixed a bug that White and Black are reversed.

This commit is contained in:
Hisayori Noda 2019-06-22 00:37:10 +09:00
parent 9dab4660ce
commit 998d8721bd

View file

@ -134,7 +134,7 @@ void AddExample(Position& pos, Color rootColor,
for (const auto trigger : kRefreshTriggers) {
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]);
}
for (const auto color : Colors) {