RectI::overlap_rect fix

This commit is contained in:
Noel Berry 2021-04-05 01:06:21 -07:00
parent c6b5e98deb
commit 9e8a181fd2

View File

@ -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)
{