From 1f7ededfe1a650028fb76d252bc0e70286a57b23 Mon Sep 17 00:00:00 2001 From: stefank0 <32932217+stefank0@users.noreply.github.com> Date: Thu, 30 May 2024 10:59:05 +0200 Subject: [PATCH] Update BoidSystem.cs fix bug introduced in commit 81d2629 --- EntitiesSamples/Assets/Boids/Scripts/BoidSystem.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/EntitiesSamples/Assets/Boids/Scripts/BoidSystem.cs b/EntitiesSamples/Assets/Boids/Scripts/BoidSystem.cs index 84eb60779..634a7df1c 100644 --- a/EntitiesSamples/Assets/Boids/Scripts/BoidSystem.cs +++ b/EntitiesSamples/Assets/Boids/Scripts/BoidSystem.cs @@ -221,8 +221,8 @@ public void ExecuteFirst(int index) public void ExecuteNext(int cellIndex, int index) { cellCount[cellIndex] += 1; - cellAlignment[cellIndex] += cellAlignment[cellIndex]; - cellSeparation[cellIndex] += cellSeparation[cellIndex]; + cellAlignment[cellIndex] += cellAlignment[index]; + cellSeparation[cellIndex] += cellSeparation[index]; cellIndices[index] = cellIndex; } }