Browse Source

Merge pull request #415 from LuisAntonRebollo/BitVector_copyConst_fix

Fix BitVector copy constructor.
David Wyand 12 years ago
parent
commit
9d9c6bf7d3
1 changed files with 3 additions and 0 deletions
  1. 3 0
      Engine/source/core/bitVector.h

+ 3 - 0
Engine/source/core/bitVector.h

@@ -158,6 +158,9 @@ inline BitVector::BitVector( U32 sizeInBits )
 
 inline BitVector::BitVector( const BitVector &r )
 {
+   mBits     = NULL;
+   mByteSize = 0;
+   mSize = 0;
    copy(r);
 }