From df03d9c2c5c50f309aeb7f5f9f05efcc691ce50e Mon Sep 17 00:00:00 2001 From: qarmin Date: Thu, 3 Oct 2019 19:14:29 +0200 Subject: [PATCH] Don't add to StringBuilder empty String --- core/string_builder.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/string_builder.cpp b/core/string_builder.cpp index 35526e0d701..22eed70f8b3 100644 --- a/core/string_builder.cpp +++ b/core/string_builder.cpp @@ -34,6 +34,9 @@ StringBuilder &StringBuilder::append(const String &p_string) { + if (p_string == String()) + return *this; + strings.push_back(p_string); appended_strings.push_back(-1);