Skip to content

Commit

Permalink
ChaosMod: Fix up alignment of DetailedValues struct
Browse files Browse the repository at this point in the history
  • Loading branch information
pongo1231 committed Sep 3, 2023
1 parent 825538d commit fbfd263
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions ChaosMod/Effects/EffectConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,14 @@ namespace EffectConfig
// unnamed structs inside unions
struct DetailedValues
{
bool Enabled = true;
EffectTimedType TimedType = EffectTimedType::NotTimed;
int CustomTime = 0;
int WeightMult = 0;
bool Permanent = false;
bool ExcludedFromVoting = false;
char Placeholder;
int ShortcutKeycode = 0;
alignas(int) bool Enabled = true;
alignas(int) EffectTimedType TimedType = EffectTimedType::NotTimed;
alignas(int) int CustomTime = 0;
alignas(int) int WeightMult = 0;
alignas(int) bool Permanent = false;
alignas(int) bool ExcludedFromVoting = false;
alignas(int) char Placeholder;
alignas(int) int ShortcutKeycode = 0;
};
union
{
Expand Down

0 comments on commit fbfd263

Please sign in to comment.