diff --git a/Source/Engine/Core/Memory/Allocation.h b/Source/Engine/Core/Memory/Allocation.h index 42b39a682..7d28c70cb 100644 --- a/Source/Engine/Core/Memory/Allocation.h +++ b/Source/Engine/Core/Memory/Allocation.h @@ -15,7 +15,7 @@ public: enum { HasSwap = false }; template - class Data + class alignas(sizeof(void*)) Data { private: byte _data[Capacity * sizeof(T)]; @@ -183,7 +183,7 @@ public: enum { HasSwap = false }; template - class Data + class alignas(sizeof(void*)) Data { private: typedef typename OtherAllocator::template Data OtherData;