Переглянути джерело

Fix BitVector copy constructor.

Initialize all member variables.
LuisAntonRebollo 12 роки тому
батько
коміт
b700572931
1 змінених файлів з 3 додано та 0 видалено
  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);
 }