浏览代码

Fixed V570: Variable is assigned to itself

The uninitialized variable 'box' is assigned to itself. Judging from the fact that this is a copy constructor, I think that it is necessary to store in the 'box' the value of 'cv.box'
Phillip Khandeliants 8 年之前
父节点
当前提交
f5fee65378
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      Engine/source/forest/forestCollision.h

+ 2 - 2
Engine/source/forest/forestCollision.h

@@ -58,7 +58,7 @@ public:
       mData          = cv.mData;
       mScale         = cv.mScale;
       hullId         = cv.hullId;
-      box            = box;
+      box            = cv.box;
    }
 
    void           calculateTransform( const MatrixF &worldXfrm );
@@ -85,4 +85,4 @@ protected:
 };
 
 
-#endif // _FORESTCOLLISION_H_
+#endif // _FORESTCOLLISION_H_