From d1c4d6f1d644605d6a8067ffcf00694eba1cec2d Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Fri, 31 May 2024 13:43:47 +0200 Subject: [PATCH] Engine: fix CLC voice data netmessage structures The field 'void* unk0' is actually 'CNetMessage::m_pMessageHandler'. Since this type was taken from the IDB (in which this field is actually part of the netmessage implementation itself, since SVC messages use a different vtable and its the only way to have it show correctly in the output), an extra 8 bytes shift occurred rendering the system defective. Removed the field and the structure now matches that of the game executable. --- src/common/netmessages.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/common/netmessages.h b/src/common/netmessages.h index c60c3992..9bfa31d0 100644 --- a/src/common/netmessages.h +++ b/src/common/netmessages.h @@ -452,7 +452,6 @@ private: class CLC_VoiceData : public CNetMessage { public: - void* unk0; int m_nLength; bf_read m_DataIn; bf_write m_DataOut; @@ -463,7 +462,6 @@ public: class CLC_DurangoVoiceData : public CNetMessage { public: - void* unk0; int m_nLength; bf_read m_DataIn; bf_write m_DataOut;