1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-02-19 16:39:41 +00:00

Ignore agents without bounding boxes

This commit is contained in:
Evil Eye 2021-03-07 20:58:09 +01:00
parent e9aa161ffc
commit eb07818f13

View file

@ -18,6 +18,8 @@ namespace DetourNavigator
void NavigatorImpl::addAgent(const osg::Vec3f& agentHalfExtents)
{
if(agentHalfExtents.length2() <= 0)
return;
++mAgents[agentHalfExtents];
mNavMeshManager.addAgent(agentHalfExtents);
}