diff --git a/Projects/UOContent/Commands/Dupe.cs b/Projects/UOContent/Commands/Dupe.cs index e38a114f3..2d715714e 100644 --- a/Projects/UOContent/Commands/Dupe.cs +++ b/Projects/UOContent/Commands/Dupe.cs @@ -120,6 +120,18 @@ public static class Dupe for (var j = 0; j < src.Items.Count; j++) { + c = src.Items[j].GetType().GetConstructor(out var paramCount); + if (c == null) + { + continue; + } + + args = paramCount == 0 ? null : new object[paramCount]; + if (args != null) + { + Array.Fill(args, Type.Missing); + } + var subItem = DoDupe(src.Items[j], c, args, from); newItem.AddItem(subItem); }