From 937fdef953c7f6136c951a5cb010971ff384d6b1 Mon Sep 17 00:00:00 2001 From: Lynix Date: Thu, 15 Dec 2016 19:27:05 +0100 Subject: [PATCH] Math/Sphere: Fix ExtendTo method --- include/Nazara/Math/Sphere.inl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/Nazara/Math/Sphere.inl b/include/Nazara/Math/Sphere.inl index ec7e750de..cd748c0ba 100644 --- a/include/Nazara/Math/Sphere.inl +++ b/include/Nazara/Math/Sphere.inl @@ -170,7 +170,7 @@ namespace Nz template Sphere& Sphere::ExtendTo(T X, T Y, T Z) { - radius = std::max(radius, Distance(X, Y, Z)); + radius = std::max(radius, radius + Distance(X, Y, Z)); return *this; }