From 7b5b088159c33473754652e545bea8f66897aa87 Mon Sep 17 00:00:00 2001 From: hexagonrecursion <52621858+hexagonrecursion@users.noreply.github.com> Date: Wed, 25 Dec 2019 13:30:19 +0000 Subject: [PATCH] Add missing initialization src/clzones.cpp:133:20: runtime error: load of value 224, which is not a valid value for type 'bool' SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior src/clzones.cpp:133:20 in src/clzones.cpp:134:20: runtime error: load of value 224, which is not a valid value for type 'bool' SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior src/clzones.cpp:134:20 in src/clzones.cpp:135:19: runtime error: load of value 224, which is not a valid value for type 'bool' SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior src/clzones.cpp:135:19 in --- src/clzones.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/clzones.h b/src/clzones.h index db3485286b61b..de0f646828510 100644 --- a/src/clzones.h +++ b/src/clzones.h @@ -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 ),