Fix potentially incorrect custom sample bank

This commit is contained in:
smoogipoo 2019-12-16 17:12:31 +09:00
parent 8beb6b534f
commit be7b00cc34
1 changed files with 1 additions and 1 deletions

View File

@ -332,7 +332,7 @@ private string getSampleBank(IList<HitSampleInfo> samples, bool banksOnly = fals
if (!banksOnly)
{
string customSampleBank = toLegacyCustomSampleBank(samples.FirstOrDefault()?.Suffix);
string customSampleBank = toLegacyCustomSampleBank(samples.FirstOrDefault(s => !string.IsNullOrEmpty(s.Name))?.Suffix);
string sampleFilename = samples.FirstOrDefault(s => string.IsNullOrEmpty(s.Name))?.LookupNames.First() ?? string.Empty;
int volume = samples.FirstOrDefault()?.Volume ?? 100;