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:
commit
3f6b33820a
1 changed files with 3 additions and 0 deletions
|
@ -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…
Reference in a new issue