Skip to content

Commit

Permalink
Fix issue 195 in RigidBodyComponents
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielChappuis committed Mar 8, 2021
1 parent 23abaa9 commit e5d9090
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/RigidBodyComponents.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ void RigidBodyComponents::allocate(uint32 nbComponentsToAllocate) {
memcpy(newBodies, mRigidBodies, mNbComponents * sizeof(RigidBody*));
memcpy(newIsAllowedToSleep, mIsAllowedToSleep, mNbComponents * sizeof(bool));
memcpy(newIsSleeping, mIsSleeping, mNbComponents * sizeof(bool));
memcpy(newSleepTimes, mSleepTimes, mNbComponents * sizeof(bool));
memcpy(newSleepTimes, mSleepTimes, mNbComponents * sizeof(decimal));
memcpy(newBodyTypes, mBodyTypes, mNbComponents * sizeof(BodyType));
memcpy(newLinearVelocities, mLinearVelocities, mNbComponents * sizeof(Vector3));
memcpy(newAngularVelocities, mAngularVelocities, mNbComponents * sizeof(Vector3));
Expand Down

0 comments on commit e5d9090

Please sign in to comment.