Fix replaying scenario list with recursive scenario folder structure

This commit is contained in:
2025-08-03 10:08:34 -05:00
committed by Celtic Minstrel
parent d37236dab1
commit bde8fe9728

View File

@@ -361,11 +361,9 @@ std::vector<scen_header_type> build_scen_headers() {
std::string scen_file;
while(std::getline(in, scen_file)){
scen_header_type scen_head;
fs::path full_path;
for(fs::path scenDir : all_scen_dirs()){
full_path = scenDir / scen_file;
if (fs::exists(full_path))
break;
fs::path full_path = locate_scenario(scen_file, true);
if(full_path.empty()){
LOG("Scenario missing! " + scen_file);
}
if(load_scenario_header(full_path, scen_head)){
scen_headers.push_back(scen_head);