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 /editor | |
parent | 9d2cd3743e7d0e66e36275ec38cadc232ac094ca (diff) |
switch to lazily allocating pathfinding results
Diffstat (limited to 'editor')
-rw-r--r-- | editor/tests/path-test.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/editor/tests/path-test.cpp b/editor/tests/path-test.cpp index 0b836932..4558fedd 100644 --- a/editor/tests/path-test.cpp +++ b/editor/tests/path-test.cpp @@ -157,6 +157,7 @@ void path_test::update_pre(app& a, const Ns&) auto& w = M.world(); auto& astar = M.astar(); + result.res = {}; // return back to the pool to preserve cpu cache auto res = astar.Dijkstra(w, pending.from, pending.to, pending.own_id, pending.max_dist, pending.own_size, 1); has_result = !!res; result = { |