diff options
| author | Juan Linietsky | 2018-01-15 18:40:41 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2018-01-15 18:41:13 -0300 |
| commit | 03475ba197a75b0f8431277954df1fdb0dc14913 (patch) | |
| tree | 164fc28c17df6c48a87237c7e29e8977c8c8e7d0 /core/ustring.cpp | |
| parent | ef1c26a9a5882e7d1b8027958eec6fcc82a46c44 (diff) | |
| download | godot-03475ba197a75b0f8431277954df1fdb0dc14913.tar.gz godot-03475ba197a75b0f8431277954df1fdb0dc14913.tar.zst godot-03475ba197a75b0f8431277954df1fdb0dc14913.zip | |
Diffstat (limited to 'core/ustring.cpp')
| -rw-r--r-- | core/ustring.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/ustring.cpp b/core/ustring.cpp index 1be828c44..1fce4f182 100644 --- a/core/ustring.cpp +++ b/core/ustring.cpp @@ -686,6 +686,9 @@ Vector<String> String::split_spaces() const { int from = 0; int i = 0; int len = length(); + if (len == 0) + return ret; + bool inside = false; while (true) { |
