浏览代码

Fix crash on project importing by dragging a folder.

Fixes #7226
Andreas Haas 9 年之前
父节点
当前提交
d82c2687f3
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      tools/editor/project_manager.cpp

+ 1 - 1
tools/editor/project_manager.cpp

@@ -1154,7 +1154,7 @@ void ProjectManager::_files_dropped(StringArray p_files, int p_screen) {
 				dir->list_dir_begin();
 				String file = dir->get_next();
 				while(confirm && file!=String()) {
-					if (!da->current_is_dir() && file.ends_with("engine.cfg")) {
+					if (!dir->current_is_dir() && file.ends_with("engine.cfg")) {
 						confirm = false;
 					}
 					file = dir->get_next();