Added compiler pack alignment value for atArray to allow for proper inline atArrays.
This commit is contained in:
parent
30bb2cec00
commit
b6a6961ad8
@ -5,6 +5,7 @@
|
|||||||
|
|
||||||
namespace rage
|
namespace rage
|
||||||
{
|
{
|
||||||
|
#pragma pack(push, 8)
|
||||||
template <typename T>
|
template <typename T>
|
||||||
class atArray
|
class atArray
|
||||||
{
|
{
|
||||||
@ -211,4 +212,6 @@ namespace rage
|
|||||||
std::uint16_t m_size;
|
std::uint16_t m_size;
|
||||||
std::uint16_t m_count;
|
std::uint16_t m_count;
|
||||||
};
|
};
|
||||||
|
static_assert(sizeof(rage::atArray<Hash>) == 0x10, "rage::atArray is not properly sized");
|
||||||
|
#pragma pack(pop)
|
||||||
}
|
}
|
Reference in New Issue
Block a user