From f5fee6537878fd274f313ead8254ddb50ee9d785 Mon Sep 17 00:00:00 2001 From: Phillip Khandeliants Date: Thu, 27 Apr 2017 12:25:01 +0300 Subject: [PATCH] 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' --- Engine/source/forest/forestCollision.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Engine/source/forest/forestCollision.h b/Engine/source/forest/forestCollision.h index f750fc85b..716ec8991 100644 --- a/Engine/source/forest/forestCollision.h +++ b/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_ \ No newline at end of file +#endif // _FORESTCOLLISION_H_