mirror of
https://github.com/Relintai/godot_voxel.git
synced 2025-05-01 17:57:55 +02:00
Fixed Vector3i hash (found by ktksgit)
This commit is contained in:
parent
507ff7eda5
commit
ec6acc6b24
@ -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);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user