Browse Source

Fix BitVector copy constructor.

Initialize all member variables.
LuisAntonRebollo 12 năm trước cách đây
mục cha
commit
b700572931
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  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);
 }