From 2d63375daa269d5e1ebebc51ba6a8669512ad84c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20M=C3=BCller?= Date: Thu, 2 Jan 2025 17:23:15 +0100 Subject: [PATCH] Fix broken Point2 inequality operator --- src/Point2.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Point2.cpp b/src/Point2.cpp index d419f58..5340d53 100644 --- a/src/Point2.cpp +++ b/src/Point2.cpp @@ -41,7 +41,7 @@ bool Point2::operator==(const Point2& rhs) const bool Point2::operator!=(const Point2& rhs) const { - return !(x == y); + return !(*this == rhs); } Point2 Point2::operator+(const Point2& rhs) const