From 756424e7854e803f05fc3e5aa451520817b26e20 Mon Sep 17 00:00:00 2001 From: Rubidium Date: Mon, 13 May 2024 23:26:05 +0200 Subject: [PATCH] Fix #12550: files were not saved in the right location when binary and configuration are in the same folder --- src/fileio.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fileio.cpp b/src/fileio.cpp index 7bf8a761983ae..84f38eabacc7e 100644 --- a/src/fileio.cpp +++ b/src/fileio.cpp @@ -84,7 +84,7 @@ static void FillValidSearchPaths(bool only_local_path) std::set seen{}; for (Searchpath sp = SP_FIRST_DIR; sp < NUM_SEARCHPATHS; sp++) { - if (sp == SP_WORKING_DIR) continue; + if (sp == SP_WORKING_DIR && !_do_scan_working_directory) continue; if (only_local_path) { switch (sp) {