fix uninitialized failure

caught by valgrind (probably inconsequential though)
This commit is contained in:
Chris Beck 2015-04-06 21:28:48 -04:00
parent ab49e328b9
commit c10ddf275e
2 changed files with 4 additions and 3 deletions

View file

@ -83,7 +83,8 @@ game_display::game_display(game_board& board, CVideo& video, boost::weak_ptr<wb:
first_turn_(true),
in_game_(false),
chat_man_(new display_chat_manager(*this)),
game_mode_(RUNNING)
game_mode_(RUNNING),
needs_rebuild_(false)
{
replace_overlay_map(&overlay_map_);
clear_screen();

View file

@ -64,9 +64,9 @@ uint32_t mt_rng::get_next_random()
{
uint32_t result = mt_();
++random_calls_;
DBG_RND << "pulled user random " << result
DBG_RND << (formatter() << "pulled user random " << result
<< " for call " << random_calls_
<< " with seed " << std::hex << random_seed_ << '\n';
<< " with seed " << std::hex << random_seed_).str() << std::endl;
return result;
}