Skip to content

Commit

Permalink
UpdateMetaEffects: iterate by constant reference
Browse files Browse the repository at this point in the history
  • Loading branch information
Regynate committed Jan 27, 2025
1 parent dc566a5 commit bf2636d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ChaosMod/Components/EffectDispatcher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ void EffectDispatcher::UpdateMetaEffects(int deltaTime)
std::vector<std::tuple<EffectIdentifier, EffectData *>> availableMetaEffects;

float totalWeight = 0.f;
for (auto effectData : GetFilteredEnabledEffects())
for (const auto &effectData : GetFilteredEnabledEffects())
{
if (effectData->IsMeta() && !effectData->IsUtility() && !effectData->IsHidden())
{
Expand Down

0 comments on commit bf2636d

Please sign in to comment.