Merge branch 'GoaLitiuM-mclass_method_iter'

This commit is contained in:
Wojtek Figat
2023-08-14 15:24:56 +02:00

View File

@@ -878,7 +878,7 @@ MMethod* MClass::GetMethod(const char* name, int32 numParams) const
GetMethods(); GetMethods();
for (int32 i = 0; i < _methods.Count(); i++) for (int32 i = 0; i < _methods.Count(); i++)
{ {
if (_methods[i]->GetName() == name && _methods[i]->GetParametersCount() == numParams) if (_methods[i]->GetParametersCount() == numParams && _methods[i]->GetName() == name)
return _methods[i]; return _methods[i];
} }
return nullptr; return nullptr;