mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-21 18:01:15 +00:00
clean up a follow on error for calling an undefined function
This commit is contained in:
parent
aa76f81073
commit
3971786ee1
1 changed files with 3 additions and 0 deletions
|
@ -1597,6 +1597,9 @@ function_expr (expr_t *e1, expr_t *e2)
|
|||
|
||||
t1 = extract_type (e1);
|
||||
|
||||
if (e1->type == ex_error)
|
||||
return e1;
|
||||
|
||||
if (t1 != ev_func) {
|
||||
if (e1->type == ex_def)
|
||||
return error (e1, "Called object \"%s\" is not a function",
|
||||
|
|
Loading…
Reference in a new issue