From ae299922844ad39629fbbdaea4bffec84216c6d4 Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Fri, 5 Jul 2024 10:40:16 +0200 Subject: [PATCH] Recast: remove packing directives from dtNavMesh The size is 0x90 (confirmed from buf alloc at [r5apex_ds + F43425]). The packing caused it to be 0x8C in size due to missing trailing 4 bytes (which aren't used in the engine). Packing removed to pad it out to 0x90. --- src/thirdparty/recast/Detour/Include/DetourNavMesh.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/thirdparty/recast/Detour/Include/DetourNavMesh.h b/src/thirdparty/recast/Detour/Include/DetourNavMesh.h index d25bf896..dda62080 100644 --- a/src/thirdparty/recast/Detour/Include/DetourNavMesh.h +++ b/src/thirdparty/recast/Detour/Include/DetourNavMesh.h @@ -408,7 +408,6 @@ struct dtNavMeshParams int magicDataCount; }; -#pragma pack(push, 4) /// A navigation mesh based on tiles of convex polygons. /// @ingroup detour class dtNavMesh @@ -764,7 +763,6 @@ public: #endif friend class dtNavMeshQuery; }; -#pragma pack(pop) /// Returns the total size needed for the static pathing table. /// @param[in] numPolyGroups The total number of poly groups.