Fix ambiguity in StringName (null data vs. data with empty string)

This commit is contained in:
Pedro J. Estébanez 2017-03-15 04:26:23 +01:00
parent 8ea4413a2c
commit 6289997724
1 changed files with 3 additions and 0 deletions

View File

@ -288,6 +288,9 @@ StringName::StringName(const String& p_name) {
ERR_FAIL_COND(!configured); ERR_FAIL_COND(!configured);
if (p_name.empty())
return;
_global_lock(); _global_lock();
uint32_t hash = p_name.hash(); uint32_t hash = p_name.hash();