1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-13 08:32:57 +08:00

Rename incorrect variable

This commit is contained in:
Dean Herbert 2021-03-19 20:25:21 +09:00
parent c0c8b3e46c
commit b2d8db3a92

View File

@ -94,21 +94,21 @@ namespace osu.Game.Skinning
sampleContainer.Clear();
Sample = null;
var ch = CurrentSkin.GetSample(sampleInfo);
var sample = CurrentSkin.GetSample(sampleInfo);
if (ch == null && AllowDefaultFallback)
if (sample == null && AllowDefaultFallback)
{
foreach (var lookup in sampleInfo.LookupNames)
{
if ((ch = sampleStore.Get(lookup)) != null)
if ((sample = sampleStore.Get(lookup)) != null)
break;
}
}
if (ch == null)
if (sample == null)
return;
sampleContainer.Add(Sample = new DrawableSample(ch));
sampleContainer.Add(Sample = new DrawableSample(sample));
// Start playback internally for the new sample if the previous one was playing beforehand.
if (wasPlaying && Looping)