Skip to content

Commit

Permalink
Spell: Fix HandleTriggerLinkedAura using pointer to out of scope vari…
Browse files Browse the repository at this point in the history
  • Loading branch information
killerwife committed Feb 28, 2024
1 parent 4aecee7 commit 1ea372d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/game/Spells/SpellAuras.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9656,8 +9656,9 @@ void Aura::HandleTriggerLinkedAura(bool apply, bool Real)
if (apply)
{
SpellCastArgs args;
if (int32 points = GetAmount())
args.SetBasePoints(&points, nullptr, nullptr);
int32 points = GetAmount();
if (points)
args.SetBasePoints(&points, &points, &points);
args.SetTarget(target);
caster->CastSpell(args, spellInfo, TRIGGERED_OLD_TRIGGERED, nullptr, this);
}
Expand Down

0 comments on commit 1ea372d

Please sign in to comment.