Fix ambiguity in StringName (null data vs. data with empty string)
This commit is contained in:
parent
8ea4413a2c
commit
6289997724
|
@ -288,6 +288,9 @@ StringName::StringName(const String& p_name) {
|
|||
|
||||
ERR_FAIL_COND(!configured);
|
||||
|
||||
if (p_name.empty())
|
||||
return;
|
||||
|
||||
_global_lock();
|
||||
|
||||
uint32_t hash = p_name.hash();
|
||||
|
|
Loading…
Reference in New Issue