mirror of https://github.com/ppy/osu
Fix some possible null reference exceptions
This commit is contained in:
parent
27311ce1fc
commit
0a67e5a274
|
@ -46,7 +46,9 @@ private void load(TextureStore textures)
|
|||
public void UpdateRank(ScoreRank newRank)
|
||||
{
|
||||
Rank = newRank;
|
||||
updateTexture();
|
||||
|
||||
if (IsLoaded)
|
||||
updateTexture();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -42,7 +42,9 @@ public Country Country
|
|||
return;
|
||||
|
||||
country = value;
|
||||
sprite.Texture = getFlagTexture();
|
||||
|
||||
if (IsLoaded)
|
||||
sprite.Texture = getFlagTexture();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue