1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-23 23:04:36 +01:00

Provide error message for older version of static_assert

This commit is contained in:
Michał Janiszewski
2018-03-30 13:42:25 +02:00
committed by GitHub
parent 4e44d6ef9c
commit 64af3d25d4

View File

@@ -83,7 +83,8 @@ struct rct_ride_entry_vehicle {
std::vector<sint8> peep_loading_positions;
};
#pragma pack(pop)
static_assert(offsetof(rct_ride_entry_vehicle, peep_loading_positions) % 8 == 0);
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");
struct rct_vehicle {
uint8 sprite_identifier; // 0x00