Rename incorrect variable

This commit is contained in:
Dean Herbert 2021-03-19 20:25:21 +09:00
parent c0c8b3e46c
commit b2d8db3a92
1 changed files with 5 additions and 5 deletions

View File

@ -94,21 +94,21 @@ private void updateSample()
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)