Skip to content

Commit

Permalink
Remove "none" from AvailableSoundBanks
Browse files Browse the repository at this point in the history
  • Loading branch information
kstefanowicz committed Aug 21, 2024
1 parent 95daa4c commit 4e729ce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion osu.Game/Beatmaps/Formats/LegacyBeatmapDecoder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public class LegacyBeatmapDecoder : LegacyDecoder<Beatmap>
private LegacySampleBank defaultSampleBank;
private int defaultSampleVolume = 100;

public static List<string> AvailableSampleBanks = ["none", "normal", "soft", "drum"];
public static List<string> AvailableSampleBanks = ["normal", "soft", "drum"];

public static void Register()
{
Expand Down
4 changes: 2 additions & 2 deletions osu.Game/Rulesets/Objects/Legacy/ConvertHitObjectParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,8 @@ private void readCustomSampleBanks(string str, SampleBankInfo bankInfo, bool ban

List<string> availableSampleBanks = LegacyBeatmapDecoder.AvailableSampleBanks;

string bank = availableSampleBanks[Parsing.ParseInt(split[0])];
string addBank = availableSampleBanks[Parsing.ParseInt(split[1])];
string bank = availableSampleBanks[Parsing.ParseInt(split[0]) - 1];
string addBank = availableSampleBanks[Parsing.ParseInt(split[1]) - 1];

bankInfo.BankForNormal = bank;
bankInfo.BankForAdditions = string.IsNullOrEmpty(addBank) ? bank : addBank;
Expand Down

0 comments on commit 4e729ce

Please sign in to comment.