1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-26 07:59:09 +00:00

Fix #12550: files were not saved in the right location when binary and configuration are in the same folder

This commit is contained in:
Rubidium
2024-05-13 23:26:05 +02:00
committed by rubidium42
parent 3f06aa441b
commit 00c4b232b3

View File

@@ -84,7 +84,7 @@ static void FillValidSearchPaths(bool only_local_path)
std::set<std::string> 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) {