mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-26 22:31:05 +00:00
Initialize the type to be ev_func.
This fixes the returning of the wrong function symbol when resolving overloaded functions and one of the functions takes no parameters.
This commit is contained in:
parent
338bb9bba0
commit
955e3ee258
1 changed files with 1 additions and 0 deletions
|
@ -319,6 +319,7 @@ find_function (expr_t *fexpr, expr_t *params)
|
|||
return fexpr;
|
||||
|
||||
memset (&type, 0, sizeof (type));
|
||||
type.type = ev_func;
|
||||
|
||||
for (e = params; e; e = e->next) {
|
||||
if (e->type == ex_error)
|
||||
|
|
Loading…
Reference in a new issue