mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-21 09:51:41 +00:00
Don't set the space defs pointer if there are no defs.
This commit is contained in:
parent
5d9fbc2d6d
commit
bad7078797
1 changed files with 2 additions and 1 deletions
|
@ -513,8 +513,9 @@ qfo_read (QFile *file)
|
|||
|
||||
for (i = 0; i < qfo->num_spaces; i++) {
|
||||
qfo->spaces[i].type = LittleLong (spaces[i].type);
|
||||
qfo->spaces[i].defs = qfo->defs + LittleLong (spaces[i].defs);
|
||||
qfo->spaces[i].num_defs = LittleLong (spaces[i].num_defs);
|
||||
if (qfo->spaces[i].num_defs)
|
||||
qfo->spaces[i].defs = qfo->defs + LittleLong (spaces[i].defs);
|
||||
qfo->spaces[i].data_size = LittleLong (spaces[i].data_size);
|
||||
if (spaces[i].data) {
|
||||
qfo->spaces[i].d.strings = data + LittleLong (spaces[i].data);
|
||||
|
|
Loading…
Reference in a new issue