add comment
This commit is contained in:
parent
8121a92359
commit
8850862795
1 changed files with 3 additions and 1 deletions
|
@ -889,8 +889,10 @@ side_engine::side_engine(const config& cfg, connect_engine& parent_engine, const
|
|||
, allow_changes_(parent_.params_.saved_game != mp_game_settings::SAVED_GAME_MODE::MIDGAME && !(flg_.choosable_factions().size() == 1 && flg_.choosable_leaders().size() == 1 && flg_.choosable_genders().size() == 1))
|
||||
, waiting_to_choose_faction_(allow_changes_)
|
||||
, color_options_(game_config::default_colors)
|
||||
, color_id_(color_options_[color_])
|
||||
//TODO: what should we do if color_ is out of range?
|
||||
, color_id_(color_options_.at(color_))
|
||||
{
|
||||
|
||||
// Save default attributes that could be overwirtten by the faction, so that correct faction lists would be
|
||||
// initialized by flg_manager when the new side config is sent over network.
|
||||
cfg_.add_child("default_faction", config {
|
||||
|
|
Loading…
Add table
Reference in a new issue