uninitialized variables-navigation

This commit is contained in:
AzaezelX 2020-05-11 15:08:57 -05:00
parent f52c3d5ed2
commit a46bf3d7e5
5 changed files with 6 additions and 6 deletions

View file

@ -45,6 +45,7 @@ duDebugDrawTorque::duDebugDrawTorque()
mCurrColor = 0;
mOverrideColor = 0;
mOverride = false;
dMemset(&mStore, 0, sizeof(mStore));
}
duDebugDrawTorque::~duDebugDrawTorque()

View file

@ -125,7 +125,6 @@ protected:
GFXStateBlockRef mZDisableSB;
GFXStateBlockRef mZEnableSB;
bool mSavedDrag;
bool mIsDirty;
String mMode;
@ -169,15 +168,13 @@ protected:
class GuiNavEditorUndoAction : public UndoAction
{
public:
GuiNavEditorUndoAction(const UTF8* actionName) : UndoAction(actionName)
GuiNavEditorUndoAction(const UTF8* actionName) : UndoAction(actionName), mNavEditor(NULL), mObjId(NULL)
{
}
GuiNavEditorCtrl *mNavEditor;
SimObjectId mObjId;
F32 mMetersPerSegment;
U32 mSegmentsPerBatch;
virtual void undo();
virtual void redo() { undo(); }

View file

@ -213,6 +213,7 @@ NavMesh::NavMesh()
mAlwaysRender = false;
mBuilding = false;
mCurLinkID = 0;
}
NavMesh::~NavMesh()

View file

@ -166,14 +166,14 @@ public:
/// @name Annotations
/// @{
/* not implemented
/// Should we automatically generate jump-down links?
bool mJumpDownLinks;
/// Height of a 'small' jump link.
F32 mJumpLinkSmall;
/// Height of a 'large' jump link.
F32 mJumpLinkLarge;
*/
/// Distance to search for cover.
F32 mCoverDist;

View file

@ -70,6 +70,7 @@ NavPath::NavPath() :
mRenderSearch = false;
mQuery = NULL;
mStatus = DT_FAILURE;
}
NavPath::~NavPath()