mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 15:47:26 +08:00
Localisation can not be null in BeatmapSetHeader.cs
This commit is contained in:
parent
dc317139c9
commit
0f539d24f0
@ -91,6 +91,9 @@ namespace osu.Game.Beatmaps.Drawables
|
||||
[BackgroundDependencyLoader]
|
||||
private void load(LocalisationEngine localisation)
|
||||
{
|
||||
if (localisation == null)
|
||||
throw new ArgumentNullException(nameof(localisation));
|
||||
|
||||
title.Current = localisation.GetUnicodePreference(beatmap.Metadata.TitleUnicode, beatmap.Metadata.Title);
|
||||
artist.Current = localisation.GetUnicodePreference(beatmap.Metadata.ArtistUnicode, beatmap.Metadata.Artist);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user