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 0aed60f4de
commit 9d009edfc8

View file

@ -1509,12 +1509,12 @@ 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;
}
M_Memcpy(signature, virtnodes->data, 4);
signature[4] = '\0';
virtnodes->data += 4;
if (!strcmp(signature, "XNOD"))
nodetype = NT_XNOD;
else if (!strcmp(signature, "ZNOD"))