From 3d80049ad418eb1c8310c42bc5146a7980407f79 Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Sat, 3 Jun 2023 18:08:16 +0200 Subject: [PATCH] Fix incorrect padding in CFrameSnapshot 'CFrameSnapshot::m_TickUpdate::m_nCommandTick' was at 0x44, the shifting was fixed by removing the extraneous padding. --- r5dev/engine/framesnapshot.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/r5dev/engine/framesnapshot.h b/r5dev/engine/framesnapshot.h index 47cb8372..0912186f 100644 --- a/r5dev/engine/framesnapshot.h +++ b/r5dev/engine/framesnapshot.h @@ -19,8 +19,7 @@ struct CFrameSnapshot _BYTE snap_byte25; _BYTE snap_byte26; __unaligned __declspec(align(1)) _WORD word27; - _BYTE gap29[3]; - nettick_t snap_tick_update; + nettick_t m_TickUpdate; _BYTE gap44[4]; _QWORD qword48; _QWORD qword50; @@ -29,4 +28,6 @@ struct CFrameSnapshot char transmit_entity[4096]; }; +static_assert(sizeof(CFrameSnapshot) == 0x21858); + #endif // FRAMESNAPSHOT_H \ No newline at end of file