Skip to content

Commit

Permalink
fix AnimationFrame NPE error
Browse files Browse the repository at this point in the history
  • Loading branch information
Aytackydln committed Oct 11, 2024
1 parent 33f82f0 commit 5faf242
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ protected virtual void VirtUpdate()

void UpdateMatrices()
{
_transformationMatrix.Dispose();
_transformationMatrix?.Dispose();
_transformationMatrix = new Matrix();

_transformationMatrix.RotateAt(-_angle, _dimension.Location, MatrixOrder.Append);
Expand Down

0 comments on commit 5faf242

Please sign in to comment.