1
0

Replaced a std::hash specialization with explicit type.

std::hash is problematic in gcc / clang, one has a class, the other a struct.
This commit is contained in:
Mattes D
2014-12-24 08:38:37 +01:00
parent 9c5463be1e
commit 63de5f8a55
2 changed files with 4 additions and 8 deletions

View File

@@ -2206,7 +2206,7 @@ void cPlayer::SendBlocksAround(int a_BlockX, int a_BlockY, int a_BlockZ, int a_R
}
// Divide the block changes by their respective chunks:
std::unordered_map<cChunkCoords, sSetBlockVector> Changes;
std::unordered_map<cChunkCoords, sSetBlockVector, cChunkCoordsHash> Changes;
for (const auto & blk: blks)
{
Changes[cChunkCoords(blk.m_ChunkX, blk.m_ChunkZ)].push_back(blk);