Fixed Index Out of Range Exception when retriving available categories

This commit is contained in:
miku-666
2022-08-06 06:38:53 +02:00
parent 9eaf30bc27
commit 46496d1e5f
2 changed files with 8 additions and 16 deletions
@@ -17,7 +17,7 @@ namespace PckStudio.Classes.FileTypes
public readonly int type = 1;
public AudioCategory[] Categories => Array.FindAll(_categories, c => c is not null);
private AudioCategory[] _categories { get; } = new AudioCategory[8];
private AudioCategory[] _categories { get; } = new AudioCategory[9];
public Dictionary<string, string> Credits { get; } = new Dictionary<string, string>();