Michele Caini 5 роки тому
батько
коміт
1b53e83dde
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      src/entt/core/any.hpp

+ 1 - 1
src/entt/core/any.hpp

@@ -320,7 +320,7 @@ public:
 
 
 private:
 private:
     vtable_type *vtable;
     vtable_type *vtable;
-    union { const void *instance; storage_type storage; };
+    union { const void *instance = nullptr; storage_type storage; };
 };
 };