Skip to content

Commit

Permalink
fix 'launch scenario' with new scenario/renamed file
Browse files Browse the repository at this point in the history
  • Loading branch information
NQNStudios committed Jan 21, 2025
1 parent 37640bf commit a69615c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/scenedit/scen.fileio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1174,6 +1174,8 @@ void save_scenario(bool rename) {
}
toFile = toFile.parent_path()/fname;
scenario.scen_file = toFile;
// Creating a new scenario, or using Save As, needs to update last_load_file so the new file will be launched:
last_load_file = toFile.string();

// Now write to zip file.
ogzstream zout(toFile.string().c_str());
Expand Down

0 comments on commit a69615c

Please sign in to comment.