浏览代码

Merge pull request #415 from LuisAntonRebollo/BitVector_copyConst_fix

Fix BitVector copy constructor.
David Wyand 12 年之前
父节点
当前提交
9d9c6bf7d3
共有 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);
 }