mirror of
https://github.com/orange-cpp/omath.git
synced 2026-04-18 21:43:27 +00:00
added check
This commit is contained in:
@@ -32,7 +32,8 @@ namespace omath::pathfinding
|
|||||||
|
|
||||||
void NavigationMesh::set_event(const Vector3<float>& vertex, std::string event_id)
|
void NavigationMesh::set_event(const Vector3<float>& vertex, std::string event_id)
|
||||||
{
|
{
|
||||||
m_vertex_events[vertex] = std::move(event_id);
|
if (m_vertex_map.contains(vertex))
|
||||||
|
m_vertex_events[vertex] = std::move(event_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
void NavigationMesh::clear_event(const Vector3<float>& vertex)
|
void NavigationMesh::clear_event(const Vector3<float>& vertex)
|
||||||
|
|||||||
Reference in New Issue
Block a user