1
0
mirror of https://github.com/ppy/osu.git synced 2026-06-01 06:19:54 +08:00

Fix some possible null reference exceptions

This commit is contained in:
smoogipoo
2018-07-09 17:09:17 +09:00
Unverified
parent 27311ce1fc
commit 0a67e5a274
2 changed files with 6 additions and 2 deletions
@@ -46,7 +46,9 @@ namespace osu.Game.Screens.Select.Leaderboards
public void UpdateRank(ScoreRank newRank)
{
Rank = newRank;
updateTexture();
if (IsLoaded)
updateTexture();
}
}
}
+3 -1
View File
@@ -42,7 +42,9 @@ namespace osu.Game.Users
return;
country = value;
sprite.Texture = getFlagTexture();
if (IsLoaded)
sprite.Texture = getFlagTexture();
}
}