Fix MUtils::GetClass for Float2

This commit is contained in:
Wojtek Figat
2024-11-18 14:42:13 +01:00
parent 1eb4980b89
commit a839cf796b
2 changed files with 3 additions and 3 deletions

View File

@@ -846,12 +846,12 @@ namespace
MMethod* ManagedBinaryModule::FindMethod(MClass* mclass, const ScriptingTypeMethodSignature& signature)
{
#if USE_CSHARP
if (!mclass)
return nullptr;
const auto& methods = mclass->GetMethods();
for (MMethod* method : methods)
{
#if USE_CSHARP
if (method->IsStatic() != signature.IsStatic)
continue;
if (method->GetName() != signature.Name)
@@ -872,8 +872,8 @@ MMethod* ManagedBinaryModule::FindMethod(MClass* mclass, const ScriptingTypeMeth
}
if (isValid && VariantTypeEquals(signature.ReturnType, method->GetReturnType()))
return method;
#endif
}
#endif
return nullptr;
}