Skip to content

Commit

Permalink
Add missing was_loaded initialization
Browse files Browse the repository at this point in the history
src/item_category.cpp:30:20: runtime error: load of value 192, which is not a valid value for type 'bool'
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior src/item_category.cpp:30:20 in 
src/item_category.cpp:31:19: runtime error: load of value 192, which is not a valid value for type 'bool'
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior src/item_category.cpp:31:19 in 
src/item_category.cpp:32:19: runtime error: load of value 192, which is not a valid value for type 'bool'
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior src/item_category.cpp:32:19 in
  • Loading branch information
hexagonrecursion authored Dec 25, 2019
1 parent ec854e7 commit a25a2c1
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit a25a2c1

Please sign in to comment.