diff --git a/agb/src/number.rs b/agb/src/number.rs index 8020f576..da707185 100644 --- a/agb/src/number.rs +++ b/agb/src/number.rs @@ -661,7 +661,7 @@ impl Rect { self.position.x < other.position.x + other.size.x && self.position.x + self.size.x > other.position.x && self.position.y < other.position.y + other.size.y - && self.position.y + self.size.y > self.position.y + && self.position.y + self.size.y > other.position.y } pub fn overlapping_rect(&self, other: Rect) -> Rect {