You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-13 13:31:48 +00:00
Don't add to StringBuilder empty String
This commit is contained in:
@@ -34,6 +34,9 @@
|
|||||||
|
|
||||||
StringBuilder &StringBuilder::append(const String &p_string) {
|
StringBuilder &StringBuilder::append(const String &p_string) {
|
||||||
|
|
||||||
|
if (p_string == String())
|
||||||
|
return *this;
|
||||||
|
|
||||||
strings.push_back(p_string);
|
strings.push_back(p_string);
|
||||||
appended_strings.push_back(-1);
|
appended_strings.push_back(-1);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user