summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-01-11 09:17:39 +0100
committerStanislaw Halik <sthalik@misaki.pl>2024-01-11 09:17:39 +0100
commit73f111b6fb063ceee1cc9503f41ca6fb3bcc5976 (patch)
tree3d816b1ca507bb4cd60016519011be93c903de16 /src
parent92888469084a1dd59733f5ff484c085d1b285926 (diff)
b
Diffstat (limited to 'src')
-rw-r--r--src/dijkstra.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/dijkstra.cpp b/src/dijkstra.cpp
index 2ee12a23..ef980ee6 100644
--- a/src/dijkstra.cpp
+++ b/src/dijkstra.cpp
@@ -185,8 +185,6 @@ path_search_result astar::Dijkstra(world& w, const point from, const point to,
if (!path_search::is_passable(w, to.coord(), to.offset(), own_size, own_id, p))
return {};
- cache.allocate(from, max_dist);
-
constexpr int8_t div_min = -div_factor*2, div_max = div_factor*2;
for (int8_t y = div_min; y <= div_max; y++)