mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-19 17:01:46 +00:00
byteswap the reloc def field too (fixes the qfcc seg on big-endian systems)
This commit is contained in:
parent
ff8ea15c09
commit
a431a2783c
1 changed files with 1 additions and 0 deletions
|
@ -405,6 +405,7 @@ qfo_read (VFile *file)
|
|||
for (reloc = qfo->relocs; reloc - qfo->relocs < qfo->num_relocs; reloc++) {
|
||||
reloc->ofs = LittleLong (reloc->ofs);
|
||||
reloc->type = LittleLong (reloc->type);
|
||||
reloc->def = LittleLong (reloc->def);
|
||||
}
|
||||
for (def = qfo->defs; def - qfo->defs < qfo->num_defs; def++) {
|
||||
def->basic_type = LittleLong (def->basic_type);
|
||||
|
|
Loading…
Reference in a new issue