1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 08:27:49 +08:00

Handle null texture case

This commit is contained in:
Bartłomiej Dach 2023-09-27 11:18:38 +02:00
parent a7237e48aa
commit e314913aeb
No known key found for this signature in database

View File

@ -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)