Ignore:
Timestamp:
Jul 9, 2012, 3:35:27 PM (10 years ago)
Author:
sam
Message:

test: fix an alignment issue with btVector3/vec3 casts.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/Physics/LolBtPhysicsIntegration.h

    r1611 r1614  
    2727#define BT2LOL_SIZE                             2.0f
    2828
    29 #define LOL2BT_VEC3(ELEMENT)    (*(btVector3*)(&(ELEMENT)))
     29#define LOL2BT_VEC3(ELEMENT)    btVector3((ELEMENT).x, (ELEMENT).y, (ELEMENT).z)
    3030#define BT2LOL_VEC3(ELEMENT)    (*(lol::vec3*)(&(ELEMENT)))
    3131
Note: See TracChangeset for help on using the changeset viewer.