Skip to content
Snippets Groups Projects
Unverified Commit 9147d095 authored by nicknide's avatar nicknide Committed by GitHub
Browse files

fix invalid assert dtAssert(npath < m_maxPath) (#619)

parent 8a42fb63
No related branches found
No related tags found
No related merge requests found
......@@ -512,7 +512,7 @@ void dtPathCorridor::setCorridor(const float* target, const dtPolyRef* path, con
{
dtAssert(m_path);
dtAssert(npath > 0);
dtAssert(npath < m_maxPath);
dtAssert(npath <= m_maxPath);
dtVcopy(m_target, target);
memcpy(m_path, path, sizeof(dtPolyRef)*npath);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment