From 6908d03533fccbe039083054d6d2cd69ecb03c10 Mon Sep 17 00:00:00 2001 From: Justin Swanson Date: Sat, 23 Dec 2023 02:42:10 -0600 Subject: [PATCH] GenderedItemBinaryOverlay.Factory male parameter marked optional --- .../Plugins/Binary/Overlay/GenderedItemBinaryOverlay.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Mutagen.Bethesda.Core/Plugins/Binary/Overlay/GenderedItemBinaryOverlay.cs b/Mutagen.Bethesda.Core/Plugins/Binary/Overlay/GenderedItemBinaryOverlay.cs index 4e5199e05..ee2731e2a 100644 --- a/Mutagen.Bethesda.Core/Plugins/Binary/Overlay/GenderedItemBinaryOverlay.cs +++ b/Mutagen.Bethesda.Core/Plugins/Binary/Overlay/GenderedItemBinaryOverlay.cs @@ -53,7 +53,7 @@ internal static class GenderedItemBinaryOverlay BinaryOverlayFactoryPackage package, Func creator, RecordTypeConverter femaleRecordConverter, - RecordTypeConverter maleRecordConverter, + RecordTypeConverter? maleRecordConverter = null, bool shortCircuit = true, bool parseNonConvertedItems = false) where T : class @@ -65,7 +65,7 @@ internal static class GenderedItemBinaryOverlay if (stream.Complete) break; var subHeader = stream.GetSubrecordHeader(); var recType = subHeader.RecordType; - if (maleRecordConverter.ToConversions.TryGetValue(recType, out var _)) + if (maleRecordConverter != null && maleRecordConverter.ToConversions.TryGetValue(recType, out var _)) { maleObj = creator(stream, package, new TypedParseParams( lengthOverride: null,