Skip to content

Commit

Permalink
修复NullReferenceException
Browse files Browse the repository at this point in the history
Signed-off-by: 舰队的偶像-岛风酱! <[email protected]>
  • Loading branch information
frg2089 committed Dec 13, 2023
1 parent 232f3ab commit ded11b3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Shimakaze.Sdk.Hva/HvaReader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ public override async Task<HvaFile> ReadAsync(IProgress<float>? progress = defau
for (int i = 0; i < hva.Frames.Length; i++)
{
cancellationToken.ThrowIfCancellationRequested();
hva.Frames[i] ??= new();
progress?.Report(1f / 3 + 2f / 3 * ((float)i / hva.Frames.Length));

hva.Frames[i].Matrices = new HvaMatrix[hva.Header.NumSections];
Expand Down

0 comments on commit ded11b3

Please sign in to comment.