Prechádzať zdrojové kódy

Fix BitVector copy constructor.

Initialize all member variables.
LuisAntonRebollo 12 rokov pred
rodič
commit
b700572931
1 zmenil súbory, kde vykonal 3 pridanie a 0 odobranie
  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);
 }
 }