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

@@ -162,6 +162,11 @@ void StringName::unref() {
_data = nullptr;
}
uint32_t StringName::get_empty_hash() {
static uint32_t empty_hash = String::hash("");
return empty_hash;
}
bool StringName::operator==(const String &p_name) const {
if (_data) {
return _data->operator==(p_name);