mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Recast: properly free data on shutdown
Editor::m_navMesh is always deleted in the base class, removed extraneous deletion from the tilemesh editor.
This commit is contained in:
parent
1491f6eaac
commit
136fc4ecf5
@ -764,9 +764,11 @@ Editor_TempObstacles::Editor_TempObstacles()
|
||||
|
||||
Editor_TempObstacles::~Editor_TempObstacles()
|
||||
{
|
||||
dtFreeNavMesh(m_navMesh);
|
||||
m_navMesh = 0;
|
||||
dtFreeTileCache(m_tileCache);
|
||||
|
||||
delete m_talloc;
|
||||
delete m_tcomp;
|
||||
delete m_tmproc;
|
||||
}
|
||||
|
||||
void Editor_TempObstacles::handleSettings()
|
||||
|
@ -463,8 +463,6 @@ Editor_TileMesh::Editor_TileMesh() :
|
||||
Editor_TileMesh::~Editor_TileMesh()
|
||||
{
|
||||
cleanup();
|
||||
dtFreeNavMesh(m_navMesh);
|
||||
m_navMesh = 0;
|
||||
}
|
||||
|
||||
void Editor_TileMesh::handleSettings()
|
||||
|
Loading…
x
Reference in New Issue
Block a user