uninitialized variables-environment and forrest

This commit is contained in:
AzaezelX 2020-05-11 14:56:04 -05:00
parent 2c1508c169
commit 1efb687867
20 changed files with 74 additions and 34 deletions

View file

@ -161,7 +161,9 @@ ForestSelectionTool::ForestSelectionTool()
: Parent(),
mGizmo( NULL ),
mCurrAction( NULL ),
mGizmoProfile( NULL )
mGizmoProfile( NULL ),
mMouseDragged(false),
mUsingGizmo(false)
{
mBounds = Box3F::Invalid;

View file

@ -114,9 +114,6 @@ protected:
static bool smDrawCells;
static bool smDrawBounds;
///
bool mRegen;
enum MaskBits
{
MediaMask = Parent::NextFreeMask << 1,
@ -211,4 +208,4 @@ public:
void updateCollision();
};
#endif // _H_FOREST_
#endif // _H_FOREST_

View file

@ -46,7 +46,11 @@ public:
ForestConvex()
{
mType = ForestConvexType;
mTransform.identity();
mTransform.identity();
hullId = 0;
mForestItemKey = 0;
mData = NULL;
mScale = 1.0f;
}
ForestConvex( const ForestConvex &cv )