Skip to content

Commit

Permalink
Rename loop variable for clarity.
Browse files Browse the repository at this point in the history
  • Loading branch information
WAYNGROUP authored and WAYNGROUP committed Jun 7, 2020
1 parent 99a2beb commit 832fbea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Runtime/Systems/EffectTriggerSystems.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Unity.Burst;
using Unity.Burst;
using Unity.Collections;
using Unity.Entities;

Expand Down Expand Up @@ -90,9 +90,9 @@ public void Execute(ArchetypeChunk chunk, int chunkIndex, int firstEntityIndex)

Skill Skill = SkillBufferArray[skillIndex];
if (!Skill.ShouldApplyEffects()) continue;
for (int e = 0; e < effectBufferArray.Length; e++)
for (int effectIndex = 0; effectIndex < effectBufferArray.Length; effectIndex++)
{
EFFECT_BUFFER EffectBuffer = effectBufferArray[e];
EFFECT_BUFFER EffectBuffer = effectBufferArray[effectIndex];
if (EffectBuffer.SkillIndex != skillIndex) continue;

EffectContextWriter.WriteContextualizedEffect(entityIndex, ref ConsumerWriter, EffectBuffer.Effect, targets[entityIndex].Value);
Expand Down

0 comments on commit 832fbea

Please sign in to comment.