From e5d9090441f71e4bb4cde24cb005b8efa25bdca3 Mon Sep 17 00:00:00 2001 From: Daniel Chappuis Date: Mon, 8 Mar 2021 22:35:23 +0100 Subject: [PATCH] Fix issue 195 in RigidBodyComponents --- src/components/RigidBodyComponents.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/RigidBodyComponents.cpp b/src/components/RigidBodyComponents.cpp index fa3086e1a..ec20ee075 100644 --- a/src/components/RigidBodyComponents.cpp +++ b/src/components/RigidBodyComponents.cpp @@ -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));