Simplefied PCKAudioFile.Categories and removed null check when looping over PCKAudioFile.Categories

This commit is contained in:
miku-666
2022-08-06 06:23:41 +02:00
parent 2c2fd9d691
commit 6466dfcf8e
5 changed files with 10 additions and 38 deletions

View File

@@ -75,7 +75,6 @@ namespace PckStudio.Classes.IO.PCK
List<string> creditIds = new List<string>();
foreach (var c in _file.Categories)
{
if (c is null) continue;
int audioCount = ReadInt(stream);
for (; 0 < audioCount; audioCount--)
{