mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 15:53:21 +08:00
Fix potentially incorrect custom sample bank
This commit is contained in:
parent
8beb6b534f
commit
be7b00cc34
@ -332,7 +332,7 @@ namespace osu.Game.Beatmaps.Formats
|
||||
|
||||
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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user