Move copying of the nodes signature out of the else case

This commit is contained in:
MascaraSnake 2019-12-29 15:59:15 +01:00
parent 464c2b04de
commit ac6c61e419

View file

@ -1509,11 +1509,11 @@ static nodetype_t P_GetNodetype(const virtres_t *virt, virtlump_t *virtnodes)
virtnodes = vres_Find(virt, "NODES");
supported[NT_XNOD] = supported[NT_ZNOD] = true;
}
}
M_Memcpy(signature, virtnodes->data, 4);
signature[4] = '\0';
virtnodes->data += 4;
}
if (!strcmp(signature, "XNOD"))
nodetype = NT_XNOD;