You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-13 13:31:48 +00:00
Fix ambiguity in StringName (null data vs. data with empty string)
This commit is contained in:
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user