diff --git a/src/entt/core/any.hpp b/src/entt/core/any.hpp index 984adb441..74cd2e7dc 100644 --- a/src/entt/core/any.hpp +++ b/src/entt/core/any.hpp @@ -329,7 +329,7 @@ public: private: vtable_type *vtable; - union { const void *instance = nullptr; storage_type storage; }; + union { const void *instance; storage_type storage{}; }; };