mirror of
https://github.com/Relintai/terraman.git
synced 2025-04-23 21:43:23 +02:00
Fix hashing.
This commit is contained in:
parent
e44caf50ea
commit
e9779e6d19
@ -228,7 +228,7 @@ public:
|
|||||||
struct IntPosHasher {
|
struct IntPosHasher {
|
||||||
static _FORCE_INLINE_ uint32_t hash(const IntPos &v) {
|
static _FORCE_INLINE_ uint32_t hash(const IntPos &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 = hash_djb2_one_32(v.x, hash);
|
||||||
return hash_djb2_one_32(v.z, hash);
|
return hash_djb2_one_32(v.z, hash);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user