Shipping: formal parameter with __declspec(align('16')) won't be aligned
When attempting to package the game, I get the following error:
This is the line that is causing it:
Any help would be appreciated
EDIT: I have read about building in 64bit when in VS, however, it seems that the editor always builds in 32bit. Might this be the problem?
The error is caused by passing your trans variable by value. FTransform is implemented using vector intrinsics, and instances of it need to have 16-byte alignment. I think the stack is guaranteed to be aligned to 16-bytes on Win64 so the compiler can pass it on the stack correctly, but there's no such guarantee on Win32 (which is what we use for shipping builds).
The solution is to pass the variable by const reference instead:
answered Jun 02 '14 at 01:40 PM
Ben Marsh STAFF
Follow this question
Once you sign in you will be able to subscribe for any updates here