diff --git a/src/thirdparty/recast/DetourCrowd/Include/DetourPathCorridor.h b/src/thirdparty/recast/DetourCrowd/Include/DetourPathCorridor.h index 3df00eb5..6a21d494 100644 --- a/src/thirdparty/recast/DetourCrowd/Include/DetourPathCorridor.h +++ b/src/thirdparty/recast/DetourCrowd/Include/DetourPathCorridor.h @@ -25,12 +25,12 @@ /// @ingroup crowd, detour class dtPathCorridor { - float m_pos[3]; - float m_target[3]; - dtPolyRef* m_path; int m_npath; int m_maxPath; + + float m_pos[3]; + float m_target[3]; public: dtPathCorridor(); diff --git a/src/thirdparty/recast/DetourCrowd/Source/DetourPathCorridor.cpp b/src/thirdparty/recast/DetourCrowd/Source/DetourPathCorridor.cpp index f6c2b9fb..27224d7e 100644 --- a/src/thirdparty/recast/DetourCrowd/Source/DetourPathCorridor.cpp +++ b/src/thirdparty/recast/DetourCrowd/Source/DetourPathCorridor.cpp @@ -201,6 +201,8 @@ dtPathCorridor::dtPathCorridor() : m_npath(0), m_maxPath(0) { + rdVset(m_pos, 0.0f,0.0f,0.0f); + rdVset(m_target, 0.0f,0.0f,0.0f); } dtPathCorridor::~dtPathCorridor()