mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-14 14:24:10 +02:00
Fixed object calls on functions (ie: GCMarkMembers)
This commit is contained in:
parent
62a28e46be
commit
c3c9b84165
1 changed files with 1 additions and 1 deletions
|
@ -5359,7 +5359,7 @@ BfTypedValue BfExprEvaluator::CreateCall(BfAstNode* targetSrc, const BfTypedValu
|
||||||
|
|
||||||
if (!skipThis)
|
if (!skipThis)
|
||||||
{
|
{
|
||||||
if ((target) && (target.mType->IsFunction()))
|
if ((target) && (target.mType->IsFunction()) && (methodInstance->GetOwner() == target.mType))
|
||||||
{
|
{
|
||||||
CheckResultForReading(target);
|
CheckResultForReading(target);
|
||||||
target = mModule->LoadValue(target);
|
target = mModule->LoadValue(target);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue