removed usless code added constexpr

This commit is contained in:
2024-09-03 21:35:48 +03:00
parent cb8c720f03
commit f412d688de
6 changed files with 14 additions and 22 deletions

View File

@@ -23,8 +23,8 @@ namespace omath::pathfinding
std::unordered_map<Vector3, PathNode> closedList;
std::unordered_map<Vector3, PathNode> openList;
const auto startVertex = navMesh.GetClossestVertex(start).value();
const auto endVertex = navMesh.GetClossestVertex(end).value();
const auto startVertex = navMesh.GetClosestVertex(start).value();
const auto endVertex = navMesh.GetClosestVertex(end).value();
openList.emplace(startVertex, PathNode{std::nullopt, 0.f});