浏览代码

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 )
 inline BitVector::BitVector( const BitVector &r )
 {
 {
+   mBits     = NULL;
+   mByteSize = 0;
+   mSize = 0;
    copy(r);
    copy(r);
 }
 }