mirror of
https://github.com/HarbourMasters/Starship
synced 2026-07-10 23:34:30 -04:00
fix GCC UB with audio (finally)
This commit is contained in:
@@ -793,7 +793,11 @@ typedef struct {
|
||||
/* 0x02 */ s16 unkMediumParam;
|
||||
/* 0x04 */ u32 romAddr;
|
||||
/* 0x08 */ char pad[0x8];
|
||||
#ifdef AVOID_UB
|
||||
/* 0x10 */ AudioTableEntry entries[]; // (dynamic size)
|
||||
#else
|
||||
/* 0x10 */ AudioTableEntry entries[1]; // (dynamic size)
|
||||
#endif
|
||||
} AudioTable; // size >= 0x20
|
||||
|
||||
typedef struct SampleDma {
|
||||
|
||||
Reference in New Issue
Block a user