From 181f651de2e67917c7fcc72f7a69e6f4707954e5 Mon Sep 17 00:00:00 2001
From: Vaxry <vaxry@vaxry.net>
Date: Mon, 5 Feb 2024 22:37:24 +0000
Subject: [PATCH] vector: avoid min0 clamps without a max being invalid

---
 src/helpers/Vector2D.hpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/helpers/Vector2D.hpp b/src/helpers/Vector2D.hpp
index c56e8a04..44eae3f3 100644
--- a/src/helpers/Vector2D.hpp
+++ b/src/helpers/Vector2D.hpp
@@ -88,7 +88,7 @@ class Vector2D {
 
     double   distance(const Vector2D& other) const;
     double   size() const;
-    Vector2D clamp(const Vector2D& min, const Vector2D& max = Vector2D()) const;
+    Vector2D clamp(const Vector2D& min, const Vector2D& max = Vector2D{-1, -1}) const;
 
     Vector2D floor() const;
     Vector2D round() const;