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:
parent
1d3ba21775
commit
592cfa4ad1
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user