1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-15 11:03:00 +01:00

Validate alignment of peep_loading_positions at compile time

This commit is contained in:
Michał Janiszewski
2018-03-30 13:16:26 +02:00
committed by GitHub
parent bb5b531f0c
commit 4e44d6ef9c

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