From 592cfa4ad162dfa03f58cfa2bf9b07f8d69a38c9 Mon Sep 17 00:00:00 2001 From: "chappuis.daniel" Date: Thu, 26 Aug 2010 15:16:10 +0000 Subject: [PATCH] Correction of a bug with the initialization of a Vector to zero git-svn-id: https://reactphysics3d.googlecode.com/svn/trunk@380 92aac97c-a6ce-11dd-a772-7fcde58d38e6 --- sources/reactphysics3d/mathematics/Vector.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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