A typo
V501 There are identical sub-expressions to the left and to the right of the ‘||’ operator: !bc.lclusters ||!bc.lclusters detourtilecache.cpp 687
dtStatus dtTileCache::buildNavMeshTile(....) { .... bc.lcset = dtAllocTileCacheContourSet(m_talloc); bc.lclusters = dtAllocTileCacheClusterSet(m_talloc); if (!bc.lclusters || !bc.lclusters) return status; status = dtBuildTileCacheContours(....); .... }
When copy-pasting a variable, the programmer forgot to rename it from bc.lclusters into bc.lcset.
Please click here to see more bugs from this project.