Fixed Vector3i hash (found by ktksgit)

This commit is contained in:
Marc Gilleron 2017-01-01 03:58:35 +01:00
parent 507ff7eda5
commit ec6acc6b24

View File

@ -138,8 +138,8 @@ _FORCE_INLINE_ bool operator!=(const Vector3i & a, const Vector3i & b) {
struct Vector3iHasher { struct Vector3iHasher {
static _FORCE_INLINE_ uint32_t hash(const Vector3i & v) { static _FORCE_INLINE_ uint32_t hash(const Vector3i & v) {
uint32_t hash = hash_djb2_one_32(v.x); uint32_t hash = hash_djb2_one_32(v.x);
hash = hash_djb2_one_32(v.y); hash = hash_djb2_one_32(v.y, hash);
return hash_djb2_one_32(v.z); return hash_djb2_one_32(v.z, hash);
} }
}; };