Skip to content

Commit 22c7a1d

Browse files
Merge pull request #22 from manbeardgames/develop
Null check for invoking OnAnimationEnd. Related Issue #21
2 parents 857196e + 4093b17 commit 22c7a1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/MonoGame.Aseprite/Graphics/AnimatedSprite.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,7 @@ public void Stop()
547547
if (Animating)
548548
{
549549
Animating = false;
550-
OnAnimationEnd.Invoke();
550+
OnAnimationEnd?.Invoke();
551551
}
552552
}
553553

0 commit comments

Comments
 (0)