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

Add safety against performing operation on non-alive foundContent

This commit is contained in:
Bartłomiej Dach 2022-01-03 20:02:46 +01:00
parent 586f158920
commit de33b420ab
No known key found for this signature in database
GPG Key ID: BCECCD4FA41F6497

View File

@ -223,7 +223,7 @@ namespace osu.Game.Overlays
private void onCardSizeChanged()
{
if (foundContent == null || !foundContent.Any())
if (foundContent?.IsAlive != true || !foundContent.Any())
return;
Loading.Show();