mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 19:03:08 +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)
|
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)
|
if (sample != null)
|
||||||
return sample;
|
return sample;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user