- fixed: FxVMFunctionCall::GetDirectFunction did not perform any checks on the function's self pointer and failed to report a mismatch as an error.
- also fixed two places in the code where the above caused some incorrect definitions not to be detected.
This commit is contained in:
parent
ca4888eb3d
commit
74faacd218
5 changed files with 16 additions and 14 deletions
|
|
@ -804,10 +804,12 @@ FFunctionBuildList FunctionBuildList;
|
|||
|
||||
VMFunction *FFunctionBuildList::AddFunction(PNamespace *gnspc, const VersionInfo &ver, PFunction *functype, FxExpression *code, const FString &name, bool fromdecorate, int stateindex, int statecount, int lumpnum)
|
||||
{
|
||||
auto func = code->GetDirectFunction(ver);
|
||||
auto func = code->GetDirectFunction(functype, ver);
|
||||
if (func != nullptr)
|
||||
{
|
||||
delete code;
|
||||
|
||||
|
||||
return func;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue