From f736cb78f9a656a6ff297bdcc9a067a1bd511f28 Mon Sep 17 00:00:00 2001 From: Noel Berry Date: Sat, 5 Dec 2020 13:49:30 -0800 Subject: [PATCH] Rect.inflate should be const --- public/blah/math/rect.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/blah/math/rect.h b/public/blah/math/rect.h index 2c22a21..b316ceb 100644 --- a/public/blah/math/rect.h +++ b/public/blah/math/rect.h @@ -75,7 +75,7 @@ namespace Blah return Vec2::zero; } - Rect inflate(float amount) { return Rect(x - amount, y - amount, w + amount * 2, h + amount * 2); } + Rect inflate(float amount) const { return Rect(x - amount, y - amount, w + amount * 2, h + amount * 2); } /* Rect Sectors: