diff --git a/IPA.Loader/Config/Stores/GeneratedStoreImpl/Serialization.cs b/IPA.Loader/Config/Stores/GeneratedStoreImpl/Serialization.cs index 63703cf8..af0d04ad 100644 --- a/IPA.Loader/Config/Stores/GeneratedStoreImpl/Serialization.cs +++ b/IPA.Loader/Config/Stores/GeneratedStoreImpl/Serialization.cs @@ -127,13 +127,13 @@ namespace IPA.Config.Stores else if (targetType == typeof(Integer)) { var IntCreate = typeof(Value).GetMethod(nameof(Value.Integer)); - EmitNumberConvertTo(il, IntCreate.GetParameters()[0].ParameterType, member.Type); + EmitNumberConvertTo(il, IntCreate.GetParameters()[0].ParameterType, memberConversionType); il.Emit(OpCodes.Call, IntCreate); } else if (targetType == typeof(FloatingPoint)) { var FloatCreate = typeof(Value).GetMethod(nameof(Value.Float)); - EmitNumberConvertTo(il, FloatCreate.GetParameters()[0].ParameterType, member.Type); + EmitNumberConvertTo(il, FloatCreate.GetParameters()[0].ParameterType, memberConversionType); il.Emit(OpCodes.Call, FloatCreate); } else if (targetType == typeof(List))