Skip to content

Commit

Permalink
Fix potential nullref due to silly null handling and too much OOP
Browse files Browse the repository at this point in the history
  • Loading branch information
peppy committed Jan 14, 2025
1 parent 058ff8a commit 3ddff19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion osu.Game/Storyboards/Drawables/DrawableStoryboard.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public partial class DrawableStoryboard : Container<DrawableStoryboardLayer>

protected override Container<DrawableStoryboardLayer> Content { get; }

protected override Vector2 DrawScale => new Vector2(Parent!.DrawHeight / 480);
protected override Vector2 DrawScale => new Vector2((Parent?.DrawHeight ?? 0) / 480);

public override bool RemoveCompletedTransforms => false;

Expand Down

0 comments on commit 3ddff19

Please sign in to comment.