mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Recast: update stack variable name
Match structure field name.
This commit is contained in:
parent
dda4e0e1bc
commit
243bd3348e
@ -1044,14 +1044,14 @@ dtStatus dtNavMesh::addTile(unsigned char* data, int dataSize, int flags,
|
||||
const int offMeshLinksSize = rdAlign4(sizeof(dtOffMeshConnection)*header->offMeshConCount);
|
||||
|
||||
const int polyCount = header->polyCount;
|
||||
const int polyCountMultiplier = header->unkPerPoly;
|
||||
const int unkPerPoly = header->unkPerPoly;
|
||||
const int offMeshConCount = header->offMeshConCount;
|
||||
|
||||
unsigned char* d = data + headerSize;
|
||||
tile->verts = rdGetThenAdvanceBufferPointer<float>(d, vertsSize);
|
||||
tile->polys = rdGetThenAdvanceBufferPointer<dtPoly>(d, polysSize);
|
||||
tile->polysEnd = &tile->polys[polyCount];
|
||||
d = (unsigned char*)(tile->polysEnd) + polyCount * polyCountMultiplier;
|
||||
d = (unsigned char*)(tile->polysEnd) + polyCount * unkPerPoly;
|
||||
tile->links = rdGetThenAdvanceBufferPointer<dtLink>(d, linksSize);
|
||||
tile->detailMeshes = rdGetThenAdvanceBufferPointer<dtPolyDetail>(d, detailMeshesSize);
|
||||
tile->detailVerts = rdGetThenAdvanceBufferPointer<float>(d, detailVertsSize);
|
||||
|
Loading…
x
Reference in New Issue
Block a user