diff --git a/core/os/file_access.cpp b/core/os/file_access.cpp index 679b1c90542..e7ad544a93c 100644 --- a/core/os/file_access.cpp +++ b/core/os/file_access.cpp @@ -353,7 +353,8 @@ Vector FileAccess::get_csv_line(const String &p_delim) const { String l; int qc = 0; do { - ERR_FAIL_COND_V(eof_reached(), Vector()); + if (eof_reached()) + break; l += get_line() + "\n"; qc = 0;