mirror of
https://github.com/recastnavigation/recastnavigation.git
synced 2026-08-18 17:20:09 +00:00
**API CHANGED** Implemented issue 124. Detour API returns error codes.
This commit is contained in:
@@ -421,7 +421,7 @@ void duDebugDrawNavMeshPoly(duDebugDraw* dd, const dtNavMesh& mesh, dtPolyRef re
|
||||
|
||||
const dtMeshTile* tile = 0;
|
||||
const dtPoly* poly = 0;
|
||||
if (!mesh.getTileAndPolyByRef(ref, &tile, &poly))
|
||||
if (mesh.getTileAndPolyByRef(ref, &tile, &poly) != DT_SUCCESS)
|
||||
return;
|
||||
|
||||
dd->depthMask(false);
|
||||
|
||||
Reference in New Issue
Block a user