[Piece] Fix incorrect comparison == operator

This commit is contained in:
2022-12-20 22:32:05 +01:00
parent 2f8cebc2c4
commit ced3c83b2c

View File

@@ -35,7 +35,7 @@ std::optional<PieceType> Piece::pieceTypeFromSymbol(char symbol) {
} }
bool operator==(const Piece &lhs, const Piece &rhs) { bool operator==(const Piece &lhs, const Piece &rhs) {
return lhs.color() == lhs.color() && lhs.type() == rhs.type(); return lhs.color() == rhs.color() && lhs.type() == rhs.type();
} }
std::ostream &operator<<(std::ostream &os, const Piece &piece) { std::ostream &operator<<(std::ostream &os, const Piece &piece) {