Merge pull request #40 from axelrodR/master

Bug fix to the any angle path
This commit is contained in:
Mikko Mononen 2014-06-25 18:04:45 +03:00
commit 42b96b7306

View File

@ -2401,7 +2401,7 @@ dtStatus dtNavMeshQuery::raycast(dtPolyRef startRef, const float* startPos, cons
nextTile = prevTile = tile;
nextPoly = prevPoly = poly;
if (prevRef)
m_nav->getTileAndPolyByRefUnsafe(prevRef, &tile, &poly);
m_nav->getTileAndPolyByRefUnsafe(prevRef, &prevTile, &prevPoly);
while (curRef)
{