Parcourir la source

Merge pull request #415 from LuisAntonRebollo/BitVector_copyConst_fix

Fix BitVector copy constructor.
David Wyand il y a 12 ans
Parent
commit
9d9c6bf7d3
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  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 )
 inline BitVector::BitVector( const BitVector &r )
 {
 {
+   mBits     = NULL;
+   mByteSize = 0;
+   mSize = 0;
    copy(r);
    copy(r);
 }
 }