Explorar o código

Merge pull request #24388 from Chaosus/fix_csv_spam

Removed error message arriving whenever csv file changed
Rémi Verschelde %!s(int64=6) %!d(string=hai) anos
pai
achega
7fdb324647
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      core/os/file_access.cpp

+ 2 - 1
core/os/file_access.cpp

@@ -353,7 +353,8 @@ Vector<String> FileAccess::get_csv_line(const String &p_delim) const {
 	String l;
 	int qc = 0;
 	do {
-		ERR_FAIL_COND_V(eof_reached(), Vector<String>());
+		if (eof_reached())
+			break;
 
 		l += get_line() + "\n";
 		qc = 0;