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

@ -67,6 +67,7 @@ GuiMeshRoadEditorCtrl::GuiMeshRoadEditorCtrl()
mMovePointMode("MeshRoadEditorMoveMode"),
mScalePointMode("MeshRoadEditorScaleMode"),
mRotatePointMode("MeshRoadEditorRotateMode"),
mSavedDrag(false),
mIsDirty( false ),
mRoadSet( NULL ),
mSelNode( -1 ),
@ -82,7 +83,7 @@ GuiMeshRoadEditorCtrl::GuiMeshRoadEditorCtrl()
mHoverSplineColor( 255,0,0,255 ),
mSelectedSplineColor( 0,255,0,255 ),
mHoverNodeColor( 255,255,255,255 ),
mHasCopied( false )
mHasCopied( false )
{
mMaterialName[Top] = StringTable->insert("DefaultRoadMaterialTop");
mMaterialName[Bottom] = StringTable->insert("DefaultRoadMaterialOther");

View file

@ -159,6 +159,9 @@ class GuiMeshRoadEditorUndoAction : public UndoAction
GuiMeshRoadEditorUndoAction( const UTF8* actionName ) : UndoAction( actionName )
{
mEditor = NULL;
mObjId = 0;
mMetersPerSegment = 1.0f;
}
GuiMeshRoadEditorCtrl *mEditor;

View file

@ -84,6 +84,7 @@ GuiRiverEditorCtrl::GuiRiverEditorCtrl()
mStartHeight = -1.0f;
mStartX = 0;
mSavedDrag = false;
mIsDirty = false;
mNodeHalfSize.set(4,4);

View file

@ -181,6 +181,10 @@ class GuiRiverEditorUndoAction : public UndoAction
GuiRiverEditorUndoAction( const UTF8* actionName ) : UndoAction( actionName )
{
mRiverEditor = NULL;
mObjId = 0;
mMetersPerSegment = 1.0f;
mSegmentsPerBatch = 10;
}
GuiRiverEditorCtrl *mRiverEditor;

View file

@ -82,6 +82,7 @@ GuiRoadEditorCtrl::GuiRoadEditorCtrl()
mSelectedSplineColor.set( 0,255,0,255 );
mHoverNodeColor.set( 255,255,255,255 );
mSavedDrag = false;
mIsDirty = false;
mMaterialName = StringTable->insert("DefaultDecalRoadMaterial");

View file

@ -146,6 +146,11 @@ class GuiRoadEditorUndoAction : public UndoAction
GuiRoadEditorUndoAction( const UTF8* actionName ) : UndoAction( actionName )
{
mRoadEditor = NULL;
mObjId = 0;
mBreakAngle = 3.0f;
mSegmentsPerBatch = 0;
mTextureLength = 0.0f;
}
GuiRoadEditorCtrl *mRoadEditor;