StringName: Fix empty hash

+Fixed compat hashes
This commit is contained in:
rune-scape
2024-09-04 20:11:06 -07:00
parent 27552a2f26
commit 0dde931bc9
19 changed files with 68 additions and 263 deletions

View File

@@ -83,6 +83,7 @@ class StringName {
static inline Mutex mutex;
static void setup();
static void cleanup();
static uint32_t get_empty_hash();
static inline bool configured = false;
#ifdef DEBUG_ENABLED
struct DebugSortReferences {
@@ -139,7 +140,7 @@ public:
if (_data) {
return _data->hash;
} else {
return 0;
return get_empty_hash();
}
}
_FORCE_INLINE_ const void *data_unique_pointer() const {