Skip to content

Commit

Permalink
Adds static assert for DamageCalculationData (#6063)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexOn1ine authored Jan 21, 2025
1 parent 6ec8470 commit b1831da
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/battle_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ struct DamageCalculationData
u32 updateFlags:1;
u32 padding:2;
};
STATIC_ASSERT(sizeof(struct DamageCalculationData) <= 4, StructExceedsFourBytes);

void HandleAction_ThrowBall(void);
bool32 IsAffectedByFollowMe(u32 battlerAtk, u32 defSide, u32 move);
Expand Down

0 comments on commit b1831da

Please sign in to comment.