Hi. I've been posting quite a bit here lately so I hope I'm not getting on anyone's nerves. Just trying to understand Havok as best as I can :).
I have a
//other non-hk variables
and a static function
static bool HitCompare( Hit firstHit, Hit secondHit )
When I try to compile, I get
error C2719: 'firstHit': formal parameter with __declspec(align('16')) won't be aligned
as an error in visual studio. I have looked up this error and Microsoft says that I cannot align my function parameters with __declspec. However, I am not using this function in my code at all, so I think it must be part of Havok's memory management system. Is there any way to turn off the alignment on this function or get rid of this error? I can bend my code to fix the bug but I'm afraid there is probably a deeper issue here, as this means I can't use any static functions in my code I'm guessing.
As a note, I have tried passing the struct as a reference parameter, and still get the same error. Help?
Edit: It seems that I am also getting the error by calling a non-static version of my function within a class of mine that inherits from hkReferencedObject. Just need a way to turn off the alignment or something I think...