Skip to content

Commit

Permalink
Merge pull request #36440 from hexagonrecursion/patch-1
Browse files Browse the repository at this point in the history
Add missing was_loaded initialization
  • Loading branch information
ZhilkinSerg authored Dec 26, 2019
2 parents 2581c93 + a25a2c1 commit ce7512f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/clzones.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class zone_type
public:

zone_type_id id;
bool was_loaded;
bool was_loaded = false;

zone_type() = default;
explicit zone_type( const std::string &name, const std::string &desc ) : name_( name ),
Expand Down
2 changes: 1 addition & 1 deletion src/item_category.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class JsonObject;

// this is a helper struct with rules for picking a zone
struct zone_priority_data {
bool was_loaded;
bool was_loaded = false;
zone_type_id id;
bool filthy = false;
cata::flat_set<std::string> flags;
Expand Down
2 changes: 1 addition & 1 deletion src/json.h
Original file line number Diff line number Diff line change
Expand Up @@ -996,7 +996,7 @@ class JsonArray
public:
JsonArray( JsonIn &jsin );
JsonArray( const JsonArray &ja );
JsonArray() : start( 0 ), index( 0 ), end_( 0 ), jsin( nullptr ) {}
JsonArray() : start( 0 ), index( 0 ), end_( 0 ), final_separator( false ), jsin( nullptr ) {}
~JsonArray() {
finish();
}
Expand Down
2 changes: 1 addition & 1 deletion src/magic_enchantment.h
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ class enchantment

enchantment_id id;

bool was_loaded;
bool was_loaded = false;

void serialize( JsonOut &jsout ) const;

Expand Down

0 comments on commit ce7512f

Please sign in to comment.