Skip to content

Commit 9376e32

Browse files
authored
#486 - Fix crash when adding facilities to construction queue (#488)
1 parent 223216a commit 9376e32

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

FrEee.Core.Domain/Objects/Civilization/Orders/ConstructionOrder.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,7 @@ private IReference<U> GetModReference<U>(string id)
102102
{
103103
// since T is not guaranteed to be a compile time IModObject implementation
104104
var type = typeof(ModReference<>).MakeGenericType(typeof(U));
105-
var r = (IReference<U>)Activator.CreateInstance(type);
106-
r.SetPropertyValue("ID", id);
105+
var r = (IReference<U>)Activator.CreateInstance(type, id);
107106
return r;
108107
}
109108

0 commit comments

Comments
 (0)