1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-31 21:45:35 +00:00

Merge branch 'fix_recastnavigation_compatibility' into 'master'

Reset rcPolyMeshDetail members after rcFree

See merge request OpenMW/openmw!2564
This commit is contained in:
psi29a 2022-12-30 20:54:09 +00:00
commit 3f6b33820a

View file

@ -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)