From 4d6f747c4b8287e042363264a47265848ca2d92c Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 6 May 2024 05:32:00 +0200 Subject: switch to lazily allocating pathfinding results --- editor/tests/path-test.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'editor') 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 = { -- cgit v1.2.3