Skip to content

Commit

Permalink
Editor: don't include file extension in default scenario id/name (fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Vultraz authored and GregoryLundberg committed Nov 30, 2017
1 parent c20a685 commit 03f85d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/editor/map/map_context.cpp
Expand Up @@ -572,7 +572,7 @@ bool map_context::save_scenario()
assert(!is_embedded());

if(scenario_id_.empty()) {
scenario_id_ = filesystem::base_name(filename_);
scenario_id_ = filesystem::base_name(filename_, true);
}

if(scenario_name_.empty()) {
Expand Down

0 comments on commit 03f85d1

Please sign in to comment.