diff --git a/apps/navmeshtool/worldspacedata.cpp b/apps/navmeshtool/worldspacedata.cpp index 81bbd857f5..50e529c6e5 100644 --- a/apps/navmeshtool/worldspacedata.cpp +++ b/apps/navmeshtool/worldspacedata.cpp @@ -178,7 +178,7 @@ namespace NavMeshTool static_cast(cellPosition.y() * ESM::Land::REAL_SIZE), minHeight ); - aabb.m_min = btVector3( + aabb.m_max = btVector3( static_cast((cellPosition.x() + 1) * ESM::Land::REAL_SIZE), static_cast((cellPosition.y() + 1) * ESM::Land::REAL_SIZE), maxHeight