1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 04:13:00 +08:00

Merge pull request #2977 from smoogipoo/fix-nullrefs

Fix some possible null reference exceptions
This commit is contained in:
Dean Herbert 2018-07-09 17:43:01 +09:00 committed by GitHub
commit 10cc95427d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View File

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

View File

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