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; mCurrColor = 0;
mOverrideColor = 0; mOverrideColor = 0;
mOverride = false; mOverride = false;
dMemset(&mStore, 0, sizeof(mStore));
} }
duDebugDrawTorque::~duDebugDrawTorque() duDebugDrawTorque::~duDebugDrawTorque()

View file

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

View file

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

View file

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

View file

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