mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 19:48:20 +02:00
fix CEMethodInfo getparam crash
This commit is contained in:
parent
079af70b53
commit
8c3744cd0c
1 changed files with 7 additions and 1 deletions
|
@ -4627,7 +4627,13 @@ bool CeContext::Execute(CeFunction* startFunction, uint8* startStackPtr, uint8*
|
|||
_Fail("Invalid method instance");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
if (paramIdx < 0 || paramIdx > methodInstance->mParams.mSize)
|
||||
{
|
||||
_Fail("paramIdx is out of range");
|
||||
return false;
|
||||
}
|
||||
|
||||
addr_ce stringAddr = GetString(methodInstance->GetParamName(paramIdx));
|
||||
_FixVariables();
|
||||
*(int32*)(stackPtr + 0) = methodInstance->GetParamType(paramIdx)->mTypeId;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue