Skip to content

Commit

Permalink
Fixed Function[...] being erroneously validated/optimized as if it wa…
Browse files Browse the repository at this point in the history
…s Function(...).
  • Loading branch information
Lexikos committed Apr 11, 2021
1 parent 9c89d77 commit a859566
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/script.cpp
Expand Up @@ -9341,7 +9341,7 @@ ResultType Line::FinalizeExpression(ArgStruct &aArg)
int param_count = this_postfix->callsite->param_count;
stack_count -= param_count;
auto param = stack + stack_count;
bool call_call = !this_postfix->callsite->member;
bool call_call = !this_postfix->callsite->member && IT_CALL == (this_postfix->callsite->flags & IT_BITMASK);
if (call_call && (this_postfix->callsite->flags & EIF_STACK_MEMBER))
{
--stack_count;
Expand Down

0 comments on commit a859566

Please sign in to comment.