remove variable that was always false

This commit is contained in:
gfgtdf 2024-12-26 03:04:39 +01:00
parent 4593921b67
commit 78e6bdaa29
2 changed files with 0 additions and 8 deletions

View File

@ -38,7 +38,6 @@ team_builder::team_builder(const config& side_cfg, team& to_build, const config&
, leader_configs_()
, level_(level)
, board_(board)
, player_exists_(false)
, seen_ids_()
, side_(num)
, side_cfg_(side_cfg)
@ -95,15 +94,10 @@ void team_builder::init()
log_step("init");
// track whether a [player] tag with persistence information exists (in addition to the [side] tag)
player_exists_ = false;
if(board_.map().empty()) {
throw game::load_game_failed("Map not found");
}
DBG_NG_TC << "snapshot: " << utils::bool_string(player_exists_);
unit_configs_.clear();
seen_ids_.clear();
}

View File

@ -54,8 +54,6 @@ private:
// only used for objectives
const config& level_;
game_board& board_;
// only used for debug message
bool player_exists_;
std::set<std::string> seen_ids_;
int side_;
const config& side_cfg_;