Skip to content

Commit

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

Please sign in to comment.