Initialize all members.

This commit is contained in:
Mark de Wever 2008-07-21 19:48:39 +00:00
parent fe9565e649
commit 313d0b6a35

View file

@ -30,14 +30,14 @@
unsigned int playmp_controller::replay_last_turn_ = 0;
playmp_controller::playmp_controller(const config& level,
game_state& state_of_game, const int ticks,
const int num_turns, const config& game_config, CVideo& video,
bool skip_replay, bool is_host)
: playsingle_controller(level, state_of_game, ticks, num_turns,
game_config, video, skip_replay)
game_state& state_of_game, const int ticks,
const int num_turns, const config& game_config, CVideo& video,
bool skip_replay, bool is_host) :
playsingle_controller(level, state_of_game, ticks, num_turns,
game_config, video, skip_replay),
turn_data_(NULL),
beep_warning_time_(0)
{
beep_warning_time_ = 0;
turn_data_ = NULL;
is_host_ = is_host;
// We stop quick replay if play isn't yet past turn 1
if ( replay_last_turn_ <= 1)