mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-18 15:01:41 +00:00
don't seg on undefined vars
This commit is contained in:
parent
204243fe95
commit
303287dc11
1 changed files with 3 additions and 0 deletions
|
@ -418,6 +418,9 @@ method_check_params (method_t *method, expr_t *args)
|
|||
expr_t *e = arg_list[i];
|
||||
type_t *t = get_type (e);
|
||||
|
||||
if (!t)
|
||||
return e;
|
||||
|
||||
if (mtype->parm_types[i] == &type_float && e->type == ex_integer) {
|
||||
convert_int (e);
|
||||
t = &type_float;
|
||||
|
|
Loading…
Reference in a new issue