mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-18 16:10:26 +02:00
Fixed issue instantiating objects with static constructors
This commit is contained in:
parent
3123aad0d1
commit
1f887608a2
1 changed files with 1 additions and 1 deletions
|
@ -86,7 +86,7 @@ namespace System.Reflection
|
||||||
for (int methodId < mMethodDataCount)
|
for (int methodId < mMethodDataCount)
|
||||||
{
|
{
|
||||||
let methodData = &mMethodDataPtr[methodId];
|
let methodData = &mMethodDataPtr[methodId];
|
||||||
if (!methodData.mFlags.HasFlag(.Constructor))
|
if ((!methodData.mFlags.HasFlag(.Constructor)) || (methodData.mFlags.HasFlag(.Static)))
|
||||||
continue;
|
continue;
|
||||||
if (methodData.mParamCount != 0)
|
if (methodData.mParamCount != 0)
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue