mirror of
https://github.com/suchmememanyskill/TegraExplorer.git
synced 2024-11-08 13:11:54 +00:00
re-implement tsv2 bug
This commit is contained in:
parent
094d43916c
commit
192568b686
1 changed files with 8 additions and 7 deletions
|
@ -112,11 +112,8 @@ Variable_t* genericCall(Variable_t* var, CallArgs_t* ref) {
|
|||
if (var->variableType != FunctionClass){
|
||||
SCRIPT_FATAL_ERR("Call on non function class");
|
||||
}
|
||||
|
||||
if (var->function.builtIn) {
|
||||
// TODO: implement arg handling
|
||||
|
||||
Function_t* f = ref->extra;
|
||||
if (var->function.builtIn) {
|
||||
if (f->operations.count == 0) {
|
||||
return genericCallDirect(var, NULL, 0);
|
||||
}
|
||||
|
@ -184,10 +181,14 @@ Variable_t* genericCall(Variable_t* var, CallArgs_t* ref) {
|
|||
}
|
||||
}
|
||||
else {
|
||||
Variable_t *ret = eval(var->function.function.operations.data, var->function.function.operations.count, 1);
|
||||
if (ret == NULL)
|
||||
if (f->operations.count){
|
||||
if (eval(f->operations.data, f->operations.count, 0) == NULL)
|
||||
return NULL;
|
||||
removePendingReference(ret);
|
||||
}
|
||||
|
||||
if (eval(var->function.function.operations.data, var->function.function.operations.count, 0) == NULL)
|
||||
return NULL;
|
||||
|
||||
return &emptyClass;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue