1 From 13c051b36b387356815cff5d685bc628b74ba136 Mon Sep 17 00:00:00 2001
2 From: Davide Beatrici <git@davidebeatrici.dev>
3 Date: Thu, 1 Sep 2022 23:32:57 +0200
4 Subject: [PATCH] FIX(positional-audio): Force 8 bytes alignment for
5 CCameraAngles in GTAV plugin
7 https://en.cppreference.com/w/cpp/language/alignas
9 This fixes compilation when the implicit alignment is not 8 bytes.
11 It can be the case with 32 bit targets.
13 plugins/gtav/structs.h | 2 +-
14 1 file changed, 1 insertion(+), 1 deletion(-)
16 diff --git a/plugins/gtav/structs.h b/plugins/gtav/structs.h
17 index 2829dc11e..0e4f76eda 100644
18 --- a/plugins/gtav/structs.h
19 +++ b/plugins/gtav/structs.h
20 @@ -118,7 +118,7 @@ struct CCameraManagerAngles {
21 ptr_t cameraAngles; // CCameraAngles *
24 -struct CCameraAngles {
25 +struct alignas(8) CCameraAngles {
27 ptr_t playerAngles; // CPlayerAngles *