Browse Source

Added check for HasConverter during correction phase

pull/44/head
Anairkoen Schno 4 years ago
parent
commit
c2531d5df5
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      IPA.Loader/Config/Stores/GeneratedStoreImpl.cs

+ 1
- 0
IPA.Loader/Config/Stores/GeneratedStoreImpl.cs View File

@ -1270,6 +1270,7 @@ namespace IPA.Config.Stores
#region Correction #region Correction
private static bool NeedsCorrection(SerializedMemberInfo member) private static bool NeedsCorrection(SerializedMemberInfo member)
{ {
if (member.HasConverter) return false;
var expectType = GetExpectedValueTypeForType(member.IsNullable ? member.NullableWrappedType : member.Type); var expectType = GetExpectedValueTypeForType(member.IsNullable ? member.NullableWrappedType : member.Type);
if (expectType == typeof(Map)) // TODO: make this slightly saner if (expectType == typeof(Map)) // TODO: make this slightly saner


Loading…
Cancel
Save