From d015d6e85ec92b04728286b7b52efd6feeed0b1f Mon Sep 17 00:00:00 2001 From: Lynix Date: Thu, 15 Dec 2016 19:10:44 +0100 Subject: [PATCH] Math/Sphere: Fix compilation --- 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 02847b243..ec7e750de 100644 --- a/include/Nazara/Math/Sphere.inl +++ b/include/Nazara/Math/Sphere.inl @@ -295,7 +295,7 @@ namespace Nz template bool Sphere::Intersect(const Sphere& sphere) const { - return GetPosition().SquaredDistance(sphere.x, sphere.y, sphere.z) <= IntegralPow(radius + sphere.radius, 2); + return GetPosition().SquaredDistance(Vector3(sphere.x, sphere.y, sphere.z)) <= IntegralPow(radius + sphere.radius, 2); } /*!