From 79b0389bcfc7a616290ec3ec97ce4fa6a574d0ed Mon Sep 17 00:00:00 2001 From: Ryan <80224521+Rxann@users.noreply.github.com> Date: Fri, 14 Jun 2024 11:13:20 -0400 Subject: [PATCH] Align and Resize CVehicleGadgetNodeData (#13) * update * align? --- network/sync/vehicle/CVehicleGadgetData.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/network/sync/vehicle/CVehicleGadgetData.hpp b/network/sync/vehicle/CVehicleGadgetData.hpp index 0929bae..c6fa037 100644 --- a/network/sync/vehicle/CVehicleGadgetData.hpp +++ b/network/sync/vehicle/CVehicleGadgetData.hpp @@ -9,13 +9,14 @@ public: }; static_assert(sizeof(CGadgetData) == 0xF8); -class CVehicleGadgetNodeData +class alignas(16) CVehicleGadgetNodeData { public: bool m_has_position; char pad_0001[15]; float m_position[4]; uint32_t m_num_gadgets; + char pad_0002[12]; CGadgetData m_gadgets[2]; }; -static_assert(sizeof(CVehicleGadgetNodeData) == 0x214); // Needs to be 0x220, prob from packing at 16. \ No newline at end of file +static_assert(sizeof(CVehicleGadgetNodeData) == 0x220); \ No newline at end of file