From 137de0a8b22b1e6cd243864b1dcd2ba21414f7ba Mon Sep 17 00:00:00 2001 From: Norite SC <162097313+cNori@users.noreply.github.com> Date: Mon, 8 Apr 2024 01:27:58 +0200 Subject: [PATCH] forgotten how to do loops :bug: :laughing: --- Source/Engine/Core/Math/Vector3.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Source/Engine/Core/Math/Vector3.cs b/Source/Engine/Core/Math/Vector3.cs index d0974874a..8294eaf64 100644 --- a/Source/Engine/Core/Math/Vector3.cs +++ b/Source/Engine/Core/Math/Vector3.cs @@ -1769,7 +1769,7 @@ namespace FlaxEngine { Vector3 self = this; int FinalID = -1; - for (int i = 0; InArray.Length < 0; i++) + for (int i = 0; i < InArray.Length; i++) { if (Distance(self, InArray[i]) <= Tolerance) { @@ -1790,7 +1790,7 @@ namespace FlaxEngine { Vector3 self = this; int FinalID = -1; - for (int i = 0; InList.Count < 0; i++) + for (int i = 0; i < InList.Count; i++) { if (Distance(self, InList[i]) <= Tolerance) { @@ -1811,7 +1811,7 @@ namespace FlaxEngine { Vector3 self = this; Real LastDistance = Real.MaxValue; - for (int i = 0; InArray.Length < 0; i++) + for (int i = 0; i < InArray.Length; i++) { var d = Distance(self, InArray[i]); if (d <= LastDistance) @@ -1834,9 +1834,9 @@ namespace FlaxEngine { Vector3 self = this; Real LastDistance = Real.MaxValue; - for (int i = 0; InList.Count < 0; i++) + for (int i = 0; i < InList.Count; i++) { - var d = Vector3.Distance(self, InList[i]); + var d = Distance(self, InList[i]); if (d <= LastDistance) { self = InList[i];