fixed function resolution issue pointed out by markjreed

This commit is contained in:
Justin Meza 2013-10-05 15:09:30 -04:00
parent 4e12f33afa
commit f4ba7daf49
1 changed files with 3 additions and 3 deletions

View File

@ -1682,14 +1682,14 @@ ValueObject *interpretFuncCallExprNode(ExprNode *node,
ScopeObject *dest = NULL;
ScopeObject *target = NULL;
target = getScopeObjectLocal(scope, scope, expr->name);
dest = getScopeObject(scope, scope, expr->scope);
target = getScopeObjectLocal(scope, dest, expr->name);
if (!target) return NULL;
outer = createScopeObjectCaller(scope, target);
if (!outer) return NULL;
dest = getScopeObject(scope, scope, expr->scope);
def = getScopeValue(scope, dest, expr->name);
if (!def || def->type != VT_FUNC) {