Fix when server does not send iNES headers.

This commit is contained in:
2022-11-13 14:50:51 +00:00
parent b99faf1ae4
commit 37129f6e5e

View File

@@ -474,6 +474,8 @@ public static class Remote
ProgressTask task = ctx.AddTask("Updating known iNES/NES 2.0 headers"); ProgressTask task = ctx.AddTask("Updating known iNES/NES 2.0 headers");
task.MaxValue = sync.Offsets.Count; task.MaxValue = sync.Offsets.Count;
sync.NesHeaders ??= new();
foreach(NesHeaderDto header in sync.NesHeaders) foreach(NesHeaderDto header in sync.NesHeaders)
{ {
task.Increment(1); task.Increment(1);