aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPedro J. Estébanez2017-03-15 04:26:23 +0100
committerPedro J. Estébanez2017-03-15 04:26:23 +0100
commit628999772474984310a45ee55e224c38a58e237b (patch)
treebd4d3bb840e133f0908024efe3a613db548bbfab
parent8ea4413a2c9fa7fd365b991d8a8b3cc6ca683090 (diff)
downloadgodot-628999772474984310a45ee55e224c38a58e237b.tar.gz
godot-628999772474984310a45ee55e224c38a58e237b.tar.zst
godot-628999772474984310a45ee55e224c38a58e237b.zip
-rw-r--r--core/string_db.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/string_db.cpp b/core/string_db.cpp
index 02e0b5b26..6cd9ee506 100644
--- a/core/string_db.cpp
+++ b/core/string_db.cpp
@@ -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();