浏览代码

Fix cvs files freezing the editor when a double quote is not closed

Marcelo Fernandez 8 年之前
父节点
当前提交
a3a01332b8
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      core/os/file_access.cpp

+ 2 - 0
core/os/file_access.cpp

@@ -279,6 +279,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++) {