From 46a3535b27843a6ef01744beae0517a767bd8ed2 Mon Sep 17 00:00:00 2001
From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com>
Date: Wed, 13 Jul 2022 12:08:10 +0200
Subject: [PATCH] Update dtMeshTile structure

Actual size is 0x78 (header2 also gets assigned to the header pointer in r5apex.exe + F43FFA).
---
 r5dev/thirdparty/recast/Detour/Include/DetourNavMesh.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/r5dev/thirdparty/recast/Detour/Include/DetourNavMesh.h b/r5dev/thirdparty/recast/Detour/Include/DetourNavMesh.h
index 6bedad33..d2b4e160 100644
--- a/r5dev/thirdparty/recast/Detour/Include/DetourNavMesh.h
+++ b/r5dev/thirdparty/recast/Detour/Include/DetourNavMesh.h
@@ -320,8 +320,8 @@ struct dtMeshTile
 	dtOffMeshConnection* offMeshCons;		///< The tile off-mesh connections. [Size: dtMeshHeader::offMeshConCount]
 		
 	unsigned char* data;					///< The tile data. (Not directly accessed under normal situations.)
-	void* meshLink;							///<  Seems shifted with 8 bytes from here (the rest seems to line up with r2) see field assignments in 'r5apex.exe 0x140F44A00'
-
+	void* meshLink;							///< Seems shifted with 8 bytes from here (the rest seems to line up with r2) see field assignments in 'r5apex.exe 0x140F44A00'
+	dtMeshHeader* header2;					///< Also gets assigned to the tile header 'r5apex.exe + F43FFA' [mov     [rax+60h], r13].
 	int dataSize;							///< Size of the tile data.
 	int flags;								///< Tile flags. (See: #dtTileFlags)
 	dtMeshTile* next;						///< The next free tile, or the next tile in the spatial grid.