We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 223216a commit 9376e32Copy full SHA for 9376e32
FrEee.Core.Domain/Objects/Civilization/Orders/ConstructionOrder.cs
@@ -102,8 +102,7 @@ private IReference<U> GetModReference<U>(string id)
102
{
103
// since T is not guaranteed to be a compile time IModObject implementation
104
var type = typeof(ModReference<>).MakeGenericType(typeof(U));
105
- var r = (IReference<U>)Activator.CreateInstance(type);
106
- r.SetPropertyValue("ID", id);
+ var r = (IReference<U>)Activator.CreateInstance(type, id);
107
return r;
108
}
109
0 commit comments