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
This commit is contained in:
chappuis.daniel 2010-08-26 15:16:10 +00:00
parent 1d3ba21775
commit 592cfa4ad1

View File

@ -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<nbComponent; ++i) {
tab[i] = 0.0;
}
}
// Overloaded operator for addition