diff --git a/Serialization/ArgsList.cs b/Serialization/ArgsList.cs index 045c942..2b8d960 100644 --- a/Serialization/ArgsList.cs +++ b/Serialization/ArgsList.cs @@ -99,12 +99,9 @@ public void SetTypes(IList types) { for (int i = 0; i < oldArgs.Count; i++) { - if (i < types.Count) + if (i < types.Count && types[i] == argTypes[i]) { - if (types[i] == argTypes[i]) - { - args[i] = oldArgs[i]; - } + args[i] = oldArgs[i]; } } }