Core/Auras: Make iteration over Aura::GetAuraEffects safe by automatically skipping nullptr elements

This commit is contained in:
Shauren
2025-01-09 13:23:48 +01:00
parent 0a1b81043e
commit 97f58a59f1
8 changed files with 55 additions and 86 deletions
@@ -556,9 +556,6 @@ void Player::UpdateMastery()
{
for (AuraEffect* auraEff : aura->GetAuraEffects())
{
if (!auraEff)
continue;
float mult = auraEff->GetSpellEffectInfo().BonusCoefficient;
if (G3D::fuzzyEq(mult, 0.0f))
continue;