diff --git a/include/game/World.h b/include/game/World.h index fc8ab31..a45bcf4 100644 --- a/include/game/World.h +++ b/include/game/World.h @@ -29,8 +29,8 @@ struct ChunkCoord { namespace std { template <> struct hash { - std::size_t operator()(const td::game::ChunkCoord& key) const { - return std::hash()(key.x) ^ std::hash()(key.y); + std::size_t operator()(const td::game::ChunkCoord& key) const noexcept{ + return std::hash()(key.x << 16 | key.y); } }; }