From 9e8a181fd2c08cd9a411da3511beb8c6eff50155 Mon Sep 17 00:00:00 2001 From: Noel Berry Date: Mon, 5 Apr 2021 01:06:21 -0700 Subject: [PATCH] RectI::overlap_rect fix --- src/math/rectI.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/math/rectI.cpp b/src/math/rectI.cpp index 2262f38..9e81e9e 100644 --- a/src/math/rectI.cpp +++ b/src/math/rectI.cpp @@ -92,7 +92,7 @@ bool RectI::overlaps(const RectI& other) const RectI RectI::overlap_rect(const Rect& against) const { - RectI result(0, 0, 0, 0); + RectI result = *this; if (x + w >= against.x && x < against.x + against.w) {