1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 13:23:22 +08:00

Add missing null check on AudioManager

This commit is contained in:
Dean Herbert 2022-08-08 13:31:57 +09:00
parent a8dee17513
commit 237f72efbc

View File

@ -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;
}