diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/os/file_access.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/os/file_access.cpp b/core/os/file_access.cpp index 2bb676381f..7f5a84843c 100644 --- a/core/os/file_access.cpp +++ b/core/os/file_access.cpp @@ -300,6 +300,8 @@ Vector<String> FileAccess::get_csv_line(String delim) const { String l; int qc = 0; do { + ERR_FAIL_COND_V(eof_reached(), Vector<String>()); + l += get_line() + "\n"; qc = 0; for (int i = 0; i < l.length(); i++) { |