Remove offsetof for non-POD data

This commit is contained in:
Michał Janiszewski 2019-02-09 23:04:16 +01:00
parent 838289abce
commit 9da931d5e7
1 changed files with 0 additions and 2 deletions

View File

@ -99,10 +99,8 @@ struct rct_ride_entry_vehicle
# pragma pack(pop)
#endif // __TESTPAINT__
#ifdef PLATFORM_32BIT
static_assert(offsetof(rct_ride_entry_vehicle, peep_loading_positions) % 4 == 0, "Invalid struct layout");
static_assert(sizeof(rct_ride_entry_vehicle) % 4 == 0, "Invalid struct size");
#else
static_assert(offsetof(rct_ride_entry_vehicle, peep_loading_positions) % 8 == 0, "Invalid struct layout");
static_assert(sizeof(rct_ride_entry_vehicle) % 8 == 0, "Invalid struct size");
#endif