summaryrefslogtreecommitdiffstats
path: root/src/Mobs/Path.h
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2015-06-07 12:52:14 +0200
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2015-06-07 13:53:59 +0200
commitf44d123ba8ca14c3df90afff85a0674a4463cfa2 (patch)
treed017fd5b9dd4f98b7b52b8262d1bf21f568fca10 /src/Mobs/Path.h
parentUse emplace to construct structures (diff)
downloadcuberite-f44d123ba8ca14c3df90afff85a0674a4463cfa2.tar
cuberite-f44d123ba8ca14c3df90afff85a0674a4463cfa2.tar.gz
cuberite-f44d123ba8ca14c3df90afff85a0674a4463cfa2.tar.bz2
cuberite-f44d123ba8ca14c3df90afff85a0674a4463cfa2.tar.lz
cuberite-f44d123ba8ca14c3df90afff85a0674a4463cfa2.tar.xz
cuberite-f44d123ba8ca14c3df90afff85a0674a4463cfa2.tar.zst
cuberite-f44d123ba8ca14c3df90afff85a0674a4463cfa2.zip
Diffstat (limited to 'src/Mobs/Path.h')
-rw-r--r--src/Mobs/Path.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Mobs/Path.h b/src/Mobs/Path.h
index 491165795..d4ad066e3 100644
--- a/src/Mobs/Path.h
+++ b/src/Mobs/Path.h
@@ -145,7 +145,7 @@ private:
/* Pathfinding fields */
std::priority_queue<cPathCell *, std::vector<cPathCell *>, compareHeuristics> m_OpenList;
- std::unordered_map<Vector3i, cPathCell, Vector3i> m_Map;
+ std::unordered_map<Vector3i, cPathCell, VectorHasher<int>> m_Map;
Vector3i m_Destination;
Vector3i m_Source;
int m_BoundingBoxWidth;