mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-21 18:01:15 +00:00
select the correct function when fixing its def
This commit is contained in:
parent
2a121d000f
commit
d80b448281
2 changed files with 3 additions and 3 deletions
|
@ -222,7 +222,7 @@ fixup_def (qfo_t *qfo, qfo_def_t *def, int def_num)
|
|||
Hash_Add (defined_defs, def);
|
||||
}
|
||||
if (def->basic_type == ev_func && (def->flags & QFOD_INITIALIZED)) {
|
||||
func = funcs.funcs + data->data[def->ofs].func_var;
|
||||
func = funcs.funcs + data->data[def->ofs].func_var + func_base;
|
||||
func->def = def_num;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -111,9 +111,9 @@ dump_functions (qfo_t *qfo)
|
|||
|
||||
for (i = 0; i < qfo->num_functions; i++) {
|
||||
func = qfo->functions + i;
|
||||
printf ("%s %s:%d %d %d\n",
|
||||
printf ("%s %s:%d %d %d %d\n",
|
||||
str + func->name, str + func->file, func->line,
|
||||
func->builtin, func->code);
|
||||
func->builtin, func->code, func->def);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue