Skip to content

Commit

Permalink
fix: Fixes NPE with effect controller (#1406)
Browse files Browse the repository at this point in the history
  • Loading branch information
kamronbatman committed May 22, 2023
1 parent a7edba3 commit f2d0f66
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Projects/UOContent/Items/Misc/EffectController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,8 @@ public void DoEffect(IEntity trigger)

if (Sequence != null)
{
Timer.StartTimer(TriggerDelay, () => Sequence.DoEffect(trigger));
var sequence = Sequence;
Timer.StartTimer(TriggerDelay, () => sequence.DoEffect(trigger));
}

if (EffectType != ECEffectType.None)
Expand Down

0 comments on commit f2d0f66

Please sign in to comment.