From eacb8600f4901181a5788501789306b17eab4d5e Mon Sep 17 00:00:00 2001 From: allkhor Date: Thu, 22 Nov 2018 19:30:49 +0600 Subject: [PATCH] FileAccess::store_csv_line() don't added unnecessary double quotes. --- core/os/file_access.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/os/file_access.cpp b/core/os/file_access.cpp index 8f4fae9eb1a..679b1c90542 100644 --- a/core/os/file_access.cpp +++ b/core/os/file_access.cpp @@ -534,7 +534,7 @@ void FileAccess::store_csv_line(const Vector &p_values, const String &p_ for (int i = 0; i < size; ++i) { String value = p_values[i]; - if (value.find("\"") != -1 || value.find(p_delim) != -1 || value.find("\n")) { + if (value.find("\"") != -1 || value.find(p_delim) != -1 || value.find("\n") != -1) { value = "\"" + value.replace("\"", "\"\"") + "\""; } if (i < size - 1) {