diff --git a/sources/reactphysics3d/mathematics/Vector.cpp b/sources/reactphysics3d/mathematics/Vector.cpp index e6aa3d32..adc2e7f6 100644 --- a/sources/reactphysics3d/mathematics/Vector.cpp +++ b/sources/reactphysics3d/mathematics/Vector.cpp @@ -155,6 +155,11 @@ void Vector::changeSize(uint newSize) { nbComponent = newSize; tab = new double[nbComponent]; + + // Fill the array with the value of the vector + for (int i=0; i