1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-19 14:33:21 +08:00

Fix some possible null reference exceptions

This commit is contained in:
smoogipoo 2018-07-09 17:09:17 +09:00
parent 27311ce1fc
commit 0a67e5a274
2 changed files with 6 additions and 2 deletions

View File

@ -46,6 +46,8 @@ namespace osu.Game.Screens.Select.Leaderboards
public void UpdateRank(ScoreRank newRank) public void UpdateRank(ScoreRank newRank)
{ {
Rank = newRank; Rank = newRank;
if (IsLoaded)
updateTexture(); updateTexture();
} }
} }

View File

@ -42,6 +42,8 @@ namespace osu.Game.Users
return; return;
country = value; country = value;
if (IsLoaded)
sprite.Texture = getFlagTexture(); sprite.Texture = getFlagTexture();
} }
} }