mirror of
https://github.com/ppy/osu.git
synced 2024-12-13 05:22:54 +08:00
Handle null texture case
This commit is contained in:
parent
a7237e48aa
commit
e314913aeb
@ -110,7 +110,7 @@ namespace osu.Game.Storyboards.Drawables
|
||||
|
||||
// Setting texture will only update the size if it's zero.
|
||||
// So let's force an explicit update.
|
||||
Size = new Vector2(Texture.DisplayWidth, Texture.DisplayHeight);
|
||||
Size = new Vector2(Texture?.DisplayWidth ?? 0, Texture?.DisplayHeight ?? 0);
|
||||
}
|
||||
|
||||
protected override void Dispose(bool isDisposing)
|
||||
|
Loading…
Reference in New Issue
Block a user