mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 17:43:05 +08:00
Add missing null check on AudioManager
This commit is contained in:
parent
a8dee17513
commit
237f72efbc
@ -53,7 +53,7 @@ namespace osu.Game.Skinning
|
||||
{
|
||||
foreach (string lookup in sampleInfo.LookupNames)
|
||||
{
|
||||
var sample = Samples?.Get(lookup) ?? resources.AudioManager.Samples.Get(lookup);
|
||||
var sample = Samples?.Get(lookup) ?? resources.AudioManager?.Samples.Get(lookup);
|
||||
if (sample != null)
|
||||
return sample;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user