1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-07-01 20:41:34 +00:00

Merge branch 'drippy-48' into 'openmw-48'

!2537 for 0.48

See merge request OpenMW/openmw!2545
This commit is contained in:
psi29a 2022-12-19 23:28:47 +00:00
commit 5b56fe8d0d

View file

@ -18,7 +18,8 @@ namespace DetourNavigator
void NavigatorImpl::addAgent(const AgentBounds& agentBounds)
{
if(agentBounds.mHalfExtents.length2() <= 0)
if (agentBounds.mHalfExtents.x() == 0.f || agentBounds.mHalfExtents.y() == 0.f
|| agentBounds.mHalfExtents.z() == 0.f)
return;
++mAgents[agentBounds];
mNavMeshManager.addAgent(agentBounds);