Align and Resize CVehicleGadgetNodeData (#13)

* update

* align?
This commit is contained in:
Ryan 2024-06-14 11:13:20 -04:00 committed by GitHub
parent 57dea47acc
commit 79b0389bcf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -9,13 +9,14 @@ public:
}; };
static_assert(sizeof(CGadgetData) == 0xF8); static_assert(sizeof(CGadgetData) == 0xF8);
class CVehicleGadgetNodeData class alignas(16) CVehicleGadgetNodeData
{ {
public: public:
bool m_has_position; bool m_has_position;
char pad_0001[15]; char pad_0001[15];
float m_position[4]; float m_position[4];
uint32_t m_num_gadgets; uint32_t m_num_gadgets;
char pad_0002[12];
CGadgetData m_gadgets[2]; CGadgetData m_gadgets[2];
}; };
static_assert(sizeof(CVehicleGadgetNodeData) == 0x214); // Needs to be 0x220, prob from packing at 16. static_assert(sizeof(CVehicleGadgetNodeData) == 0x220);