diff --git a/src/nostalgia/geo/point.hpp b/src/nostalgia/geo/point.hpp index 8b2b64a0c..2ef2c25b8 100644 --- a/src/nostalgia/geo/point.hpp +++ b/src/nostalgia/geo/point.hpp @@ -69,9 +69,9 @@ constexpr Point::Point(int x, int y) noexcept { constexpr Point Point::operator+(const geo::Point &p) const noexcept { auto out = *this; - out.x += x; - out.y += y; - return p; + out.x += p.x; + out.y += p.y; + return out; } constexpr Point Point::operator-(const geo::Point &p) const noexcept { @@ -83,9 +83,9 @@ constexpr Point Point::operator-(const geo::Point &p) const noexcept { constexpr Point Point::operator*(const geo::Point &p) const noexcept { auto out = *this; - out.x *= x; - out.y *= y; - return p; + out.x *= p.x; + out.y *= p.y; + return out; } constexpr Point Point::operator/(const geo::Point &p) const noexcept {