Skip to content

Commit

Permalink
Fix OpenTTD#12550: files were not saved in the right location when bi…
Browse files Browse the repository at this point in the history
…nary and configuration are in the same folder
  • Loading branch information
rubidium42 committed May 13, 2024
1 parent 9f63b9f commit 756424e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fileio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 756424e

Please sign in to comment.