From 1e34e8d5e1c850f6c535387d2f15f3e16c39bc92 Mon Sep 17 00:00:00 2001 From: Andreas Haas Date: Fri, 2 Dec 2016 18:51:31 +0100 Subject: [PATCH] Fix crash on project importing by dragging a folder. Fixes #7226 (cherry picked from commit d82c2687f30d2f2ee9f8792068964f61ae56c7b7) --- tools/editor/project_manager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/editor/project_manager.cpp b/tools/editor/project_manager.cpp index 202b9bfc3bc..1db82b157ed 100644 --- a/tools/editor/project_manager.cpp +++ b/tools/editor/project_manager.cpp @@ -1153,7 +1153,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();