mirror of
https://github.com/ppy/osu.git
synced 2025-01-18 10:02:54 +08:00
Fix potential nullref due to silly null handling and too much OOP
This commit is contained in:
parent
058ff8af77
commit
3ddff19337
@ -35,7 +35,7 @@ namespace osu.Game.Storyboards.Drawables
|
||||
|
||||
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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user