mirror of
https://github.com/Relintai/godot_voxel.git
synced 2024-12-22 01:26:50 +01: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 {
|
||||
static _FORCE_INLINE_ uint32_t hash(const Vector3i & v) {
|
||||
uint32_t hash = hash_djb2_one_32(v.x);
|
||||
hash = hash_djb2_one_32(v.y);
|
||||
return hash_djb2_one_32(v.z);
|
||||
hash = hash_djb2_one_32(v.y, hash);
|
||||
return hash_djb2_one_32(v.z, hash);
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user