mirror of
https://github.com/ppy/osu.git
synced 2025-01-06 09:03:01 +08:00
Rename incorrect variable
This commit is contained in:
parent
c0c8b3e46c
commit
b2d8db3a92
@ -94,21 +94,21 @@ namespace osu.Game.Skinning
|
|||||||
sampleContainer.Clear();
|
sampleContainer.Clear();
|
||||||
Sample = null;
|
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)
|
foreach (var lookup in sampleInfo.LookupNames)
|
||||||
{
|
{
|
||||||
if ((ch = sampleStore.Get(lookup)) != null)
|
if ((sample = sampleStore.Get(lookup)) != null)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ch == null)
|
if (sample == null)
|
||||||
return;
|
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.
|
// Start playback internally for the new sample if the previous one was playing beforehand.
|
||||||
if (wasPlaying && Looping)
|
if (wasPlaying && Looping)
|
||||||
|
Loading…
Reference in New Issue
Block a user