diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2024-05-06 05:32:00 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-05-06 05:34:43 +0200 |
commit | 4d6f747c4b8287e042363264a47265848ca2d92c (patch) | |
tree | 18ce6c1743bce9485eeb26cea8bbe87c0f4ccb5f /src/search-result.hpp | |
parent | 9d2cd3743e7d0e66e36275ec38cadc232ac094ca (diff) |
switch to lazily allocating pathfinding results
Diffstat (limited to 'src/search-result.hpp')
-rw-r--r-- | src/search-result.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/search-result.hpp b/src/search-result.hpp index aa27c374..afbca8af 100644 --- a/src/search-result.hpp +++ b/src/search-result.hpp @@ -37,6 +37,8 @@ struct path_search_result final ~path_search_result() noexcept; private: + void allocate_node(); + Pointer<node> _node; float _time = 0; uint32_t _cost = 0, _distance = (uint32_t)-1; |