From 243bd3348eb7ef8ae6dfb9a85f19b2ff42c3c88a Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Tue, 16 Jul 2024 20:51:04 +0200 Subject: [PATCH] Recast: update stack variable name Match structure field name. --- src/thirdparty/recast/Detour/Source/DetourNavMesh.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/thirdparty/recast/Detour/Source/DetourNavMesh.cpp b/src/thirdparty/recast/Detour/Source/DetourNavMesh.cpp index 663b681f..93a43c43 100644 --- a/src/thirdparty/recast/Detour/Source/DetourNavMesh.cpp +++ b/src/thirdparty/recast/Detour/Source/DetourNavMesh.cpp @@ -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(d, vertsSize); tile->polys = rdGetThenAdvanceBufferPointer(d, polysSize); tile->polysEnd = &tile->polys[polyCount]; - d = (unsigned char*)(tile->polysEnd) + polyCount * polyCountMultiplier; + d = (unsigned char*)(tile->polysEnd) + polyCount * unkPerPoly; tile->links = rdGetThenAdvanceBufferPointer(d, linksSize); tile->detailMeshes = rdGetThenAdvanceBufferPointer(d, detailMeshesSize); tile->detailVerts = rdGetThenAdvanceBufferPointer(d, detailVertsSize);