Skip to content

Commit 235b154

Browse files
committed
server: fix CCompressedControllerState alignment
1 parent a853e7e commit 235b154

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

server/src/CControllerState.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class CControllerState
4040
~CControllerState();
4141
};
4242

43-
//#pragma pack(1)
43+
#pragma pack(push, 1)
4444
struct CCompressedControllerState
4545
{
4646
int16_t LeftStickX; // move/steer left (-128?)/right (+128)
@@ -101,4 +101,5 @@ struct CCompressedControllerState
101101
uint16_t disableFlags;
102102
};
103103
};
104+
#pragma pack(pop)
104105
#endif

0 commit comments

Comments
 (0)