Initialize savegame_config in all subclasses

This commit is contained in:
Alexander van Gessel 2010-03-20 22:53:36 +01:00
parent aa2cf7d635
commit 05c96bb501
6 changed files with 12 additions and 1 deletions

View File

@ -57,6 +57,7 @@ static lg::log_domain log_engine_tc("engine/team_construction");
#define DBG_NG_TC LOG_STREAM(debug, log_engine_tc)
game_classification::game_classification():
savegame_config(),
label(),
parent(),
version(),
@ -75,6 +76,7 @@ game_classification::game_classification():
{}
game_classification::game_classification(const config& cfg):
savegame_config(),
label(cfg["label"]),
parent(cfg["parent"]),
version(cfg["version"]),

View File

@ -23,6 +23,7 @@
#include "util.hpp"
mp_game_settings::mp_game_settings() :
savegame_config(),
name(),
password(),
hash(),
@ -48,6 +49,7 @@ mp_game_settings::mp_game_settings() :
{ reset(); }
mp_game_settings::mp_game_settings(const config& cfg) :
savegame_config(),
name(),
password(),
hash(),
@ -74,7 +76,8 @@ mp_game_settings::mp_game_settings(const config& cfg) :
}
mp_game_settings::mp_game_settings(const mp_game_settings& settings)
: name(settings.name)
: savegame_config()
, name(settings.name)
, password(settings.password)
, hash(settings.hash)
, mp_era(settings.mp_era)

View File

@ -53,6 +53,8 @@ play_controller::play_controller(const config& level, game_state& state_of_game,
int ticks, int num_turns, const config& game_config, CVideo& video,
bool skip_replay) :
controller_base(ticks, game_config, video),
observer(),
savegame_config(),
prefs_disp_manager_(),
tooltips_manager_(),
events_manager_(),

View File

@ -32,6 +32,8 @@ const unsigned DEFAULT_FADE_RANGE = 14;
unsigned int positional_source::last_id = 0;
manager::manager(const display &disp) :
observer(),
savegame_config(),
sources_(),
disp_(disp)
{

View File

@ -229,6 +229,7 @@ void team::merge_shroud_map_data(const std::string& shroud_data)
}
team::team(const config& cfg, const gamemap& map, int gold) :
savegame_config(),
gold_(gold),
villages_(),
shroud_(),

View File

@ -26,6 +26,7 @@ static lg::log_domain log_engine("engine");
#define LOG_NG LOG_STREAM(info, log_engine)
tod_manager::tod_manager(const config& time_cfg, int num_turns, game_state* state):
savegame_config(),
currentTime_(0),
times_(),
areas_(),