Copy second and third triangles, this was forgotten

This commit is contained in:
smallmodel 2024-10-16 18:28:41 +02:00
parent 6413e770e1
commit 6b6adf1147
No known key found for this signature in database
GPG key ID: 9F2D623CEDF08512

View file

@ -314,6 +314,8 @@ void TIKI_SwapSkel(skelHeader_t *pheader)
pTriangles = (int *)((byte *)pSurf + LongNoSwapPtr(&pSurf->ofsTriangles));
for (j = 0; j < numTriangles; j++) {
CopyLittleLong(&pTriangles[j * 3 + 0], &pTriangles[j * 3 + 0]);
CopyLittleLong(&pTriangles[j * 3 + 1], &pTriangles[j * 3 + 1]);
CopyLittleLong(&pTriangles[j * 3 + 2], &pTriangles[j * 3 + 2]);
}
if (pheader->version >= TIKI_SKD_HEADER_OLD_VERSION) {