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:
parent
e9aa161ffc
commit
eb07818f13
1 changed files with 2 additions and 0 deletions
|
@ -18,6 +18,8 @@ namespace DetourNavigator
|
|||
|
||||
void NavigatorImpl::addAgent(const osg::Vec3f& agentHalfExtents)
|
||||
{
|
||||
if(agentHalfExtents.length2() <= 0)
|
||||
return;
|
||||
++mAgents[agentHalfExtents];
|
||||
mNavMeshManager.addAgent(agentHalfExtents);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue