Merge pull request #36543 from dreamsComeTrue/navigation-2d-missing-destructor
Added missing destructor for Navigation2D
This commit is contained in:
commit
412d1f20d1
@ -88,3 +88,7 @@ Navigation2D::Navigation2D() {
|
||||
set_cell_size(10); // Ten pixels
|
||||
set_edge_connection_margin(100);
|
||||
}
|
||||
|
||||
Navigation2D::~Navigation2D() {
|
||||
Navigation2DServer::get_singleton()->free(map);
|
||||
}
|
||||
|
@ -66,6 +66,7 @@ public:
|
||||
RID get_closest_point_owner(const Vector2 &p_point) const;
|
||||
|
||||
Navigation2D();
|
||||
~Navigation2D();
|
||||
};
|
||||
|
||||
#endif // NAVIGATION_2D_H
|
||||
|
Loading…
Reference in New Issue
Block a user