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
|
@ -417,6 +417,9 @@ method_check_params (method_t *method, expr_t *args)
|
||||||
for (i = 2; i < count; i++) {
|
for (i = 2; i < count; i++) {
|
||||||
expr_t *e = arg_list[i];
|
expr_t *e = arg_list[i];
|
||||||
type_t *t = get_type (e);
|
type_t *t = get_type (e);
|
||||||
|
|
||||||
|
if (!t)
|
||||||
|
return e;
|
||||||
|
|
||||||
if (mtype->parm_types[i] == &type_float && e->type == ex_integer) {
|
if (mtype->parm_types[i] == &type_float && e->type == ex_integer) {
|
||||||
convert_int (e);
|
convert_int (e);
|
||||||
|
|
Loading…
Reference in a new issue