Merge branch 'fix_recastnavigation_compatibility' into 'master'

Reset rcPolyMeshDetail members after rcFree

See merge request OpenMW/openmw!2564
iwyu_full
psi29a 2 years ago
commit 3f6b33820a

@ -43,8 +43,11 @@ namespace DetourNavigator
void freePolyMeshDetail(rcPolyMeshDetail& value) noexcept
{
rcFree(value.meshes);
value.meshes = nullptr;
rcFree(value.verts);
value.verts = nullptr;
rcFree(value.tris);
value.tris = nullptr;
}
void copyPolyMesh(const rcPolyMesh& src, rcPolyMesh& dst)

Loading…
Cancel
Save