Validate alignment of peep_loading_positions at compile time

This commit is contained in:
Michał Janiszewski authored and GitHub committed 2018-03-30 13:16:26 +02:00
1 parent bb5b531f0c
commit 4e44d6ef9c
1 file changed
+2
+2
View File
@@ -17,6 +17,7 @@
#ifndef _VEHICLE_H_
#define _VEHICLE_H_
#include <cstddef>
#include <vector>
#include "../common.h"
#include "../world/Location.hpp"
@@ -82,6 +83,7 @@ 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);
struct rct_vehicle {
uint8 sprite_identifier; // 0x00