summaryrefslogtreecommitdiffhomepage
path: root/src/search-astar.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/search-astar.cpp')
-rw-r--r--src/search-astar.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/search-astar.cpp b/src/search-astar.cpp
index af82ce90..3215cee7 100644
--- a/src/search-astar.cpp
+++ b/src/search-astar.cpp
@@ -6,6 +6,7 @@
#include "object.hpp"
#include "world.hpp"
#include "point.inl"
+#include "compat/array-size.hpp"
#include "compat/format.hpp"
#include "compat/vector-wrapper.hpp"
#include "compat/heap.hpp"
@@ -388,7 +389,7 @@ path_search_result astar::Dijkstra(world& w, const point from, const point to,
}
if (len)
{
- len = Math::min(len, std::size(buf)-1);
+ len = Math::min(len, array_size(buf)-1);
std::fwrite(buf, len, 1, stdout);
std::fflush(stdout);
}