diff options
-rw-r--r-- | src/dijkstra.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/dijkstra.cpp b/src/dijkstra.cpp index c9433132..4bdb3ab7 100644 --- a/src/dijkstra.cpp +++ b/src/dijkstra.cpp @@ -401,7 +401,10 @@ void cache::allocate(point from, uint32_t max_dist) array = Array<chunk_cache>{ValueInit, len}; else for (auto i = 0uz; i < len; i++) + { + array[i].chunk = {}; array[i].exists = {}; + } } size_t cache::get_chunk_index(Vector2i start, Vector2ui size, Vector2i coord) |