Skip to content

Commit

Permalink
make maps with scenario_generation usable in editor
Browse files Browse the repository at this point in the history
  • Loading branch information
gfgtdf committed Aug 16, 2019
1 parent 4eb7fcc commit 77b27a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/editor/map/context_manager.cpp
Expand Up @@ -684,7 +684,7 @@ void context_manager::init_map_generators(const config& game_config)
ERR_ED << "Scenario \"" << i["name"] << "\" with id " << i["id"]
<< " has map_generation= but no [generator] tag" << std::endl;
} else {
map_generators_.emplace_back(create_map_generator(i["map_generation"], generator_cfg));
map_generators_.emplace_back(create_map_generator(i["map_generation"].empty() ? i["scenario_generation"] : i["map_generation"], generator_cfg));
}
}
}
Expand Down

0 comments on commit 77b27a9

Please sign in to comment.