mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-21 05:39:42 +00:00
Fix flags length for rcPolyMesh
recastnavigation documentation of rcPolyMesh is misleading. It says flags field length is maxpolys when actually it's allocated as npolys.
This commit is contained in:
parent
54a676f2e3
commit
46fa3ce083
1 changed files with 1 additions and 1 deletions
|
@ -24,7 +24,7 @@ namespace DetourNavigator
|
|||
|
||||
constexpr std::size_t getFlagsLength(const rcPolyMesh& value) noexcept
|
||||
{
|
||||
return static_cast<std::size_t>(value.maxpolys);
|
||||
return static_cast<std::size_t>(value.npolys);
|
||||
}
|
||||
|
||||
constexpr std::size_t getAreasLength(const rcPolyMesh& value) noexcept
|
||||
|
|
Loading…
Reference in a new issue