Skip to content

Commit

Permalink
Initialize all members
Browse files Browse the repository at this point in the history
Found by coverity.
  • Loading branch information
AI0867 committed Jan 22, 2018
1 parent 84da344 commit 32119a5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/terrain/terrain.cpp
Expand Up @@ -59,7 +59,8 @@ terrain_type::terrain_type() :
combined_(false),
editor_default_base_(t_translation::VOID_TERRAIN),
hide_help_(false),
hide_in_editor_(false)
hide_in_editor_(false),
hide_if_impassable_(false)
{}

terrain_type::terrain_type(const config& cfg) :
Expand Down Expand Up @@ -227,7 +228,8 @@ terrain_type::terrain_type(const terrain_type& base, const terrain_type& overlay
combined_(true),
editor_default_base_(),
hide_help_(base.hide_help_ || overlay.hide_help_),
hide_in_editor_(base.hide_in_editor_ || overlay.hide_in_editor_)
hide_in_editor_(base.hide_in_editor_ || overlay.hide_in_editor_),
hide_if_impassable_(base.hide_if_impassable_ || overlay.hide_if_impassable_)
{
if(description_.empty()) {
description_ = base.description();
Expand Down

0 comments on commit 32119a5

Please sign in to comment.