Skip to content

Commit

Permalink
Fix Error
Browse files Browse the repository at this point in the history
  • Loading branch information
caxanga334 committed Jun 17, 2024
1 parent b94beb9 commit f8ddf3d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions extension/navmesh/nav_pathfind.h
Original file line number Diff line number Diff line change
Expand Up @@ -1303,7 +1303,7 @@ inline void INavAreaCollector<T>::IncludeInSearch(T* prevArea, T* area)
{
if (m_nodes.find(area->GetID()) == m_nodes.end())
{
auto& status = m_nodes.emplace(area->GetID(), INavSearchNode<T>(area));
auto status = m_nodes.emplace(area->GetID(), INavSearchNode<T>(area));

if (status.second == true)
{
Expand All @@ -1326,7 +1326,7 @@ template<typename T>
inline void INavAreaCollector<T>::InitSearch()
{

auto& status = m_nodes.emplace(m_startArea->GetID(), INavSearchNode<T>(m_startArea));
auto status = m_nodes.emplace(m_startArea->GetID(), INavSearchNode<T>(m_startArea));

if (status.second == true)
{
Expand Down

0 comments on commit f8ddf3d

Please sign in to comment.