mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
Use the correct function number when updating the function def.
Functions are 1 based in progs bug 0 based in qfo files.
This commit is contained in:
parent
535dfad305
commit
fcb567fc98
1 changed files with 1 additions and 1 deletions
|
@ -732,7 +732,7 @@ qfo_relocate_refs (qfo_t *qfo)
|
|||
QFO_INT (qfo, reloc->space, reloc->offset) = def->offset;
|
||||
break;
|
||||
case rel_def_func:
|
||||
QFO_INT (qfo, reloc->space, reloc->offset) = reloc->target;
|
||||
QFO_INT (qfo, reloc->space, reloc->offset) = reloc->target + 1;
|
||||
break;
|
||||
case rel_def_string:
|
||||
QFO_INT (qfo, reloc->space, reloc->offset) = reloc->target;
|
||||
|
|
Loading…
Reference in a new issue