position: xxx_side_to_move 改为 inline

This commit is contained in:
Calcitem 2020-09-20 21:16:17 +08:00
parent bd4d69a159
commit bab6472ff2
1 changed files with 2 additions and 2 deletions

View File

@ -1061,13 +1061,13 @@ void Position::remove_ban_stones()
}
}
void Position::set_side_to_move(Color c)
inline void Position::set_side_to_move(Color c)
{
sideToMove = c;
them = ~sideToMove;
}
void Position::change_side_to_move()
inline void Position::change_side_to_move()
{
set_side_to_move(~sideToMove);
}