From ced3c83b2c7409127d22d8e7ad4881aca05d98f5 Mon Sep 17 00:00:00 2001 From: Arthur Bols Date: Tue, 20 Dec 2022 22:32:05 +0100 Subject: [PATCH] [Piece] Fix incorrect comparison == operator --- Piece.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Piece.cpp b/Piece.cpp index 9715227..e49534b 100644 --- a/Piece.cpp +++ b/Piece.cpp @@ -35,7 +35,7 @@ std::optional Piece::pieceTypeFromSymbol(char symbol) { } 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) {