Browse Source

any: minor changes

Michele Caini 5 years ago
parent
commit
1b53e83dde
1 changed files with 1 additions and 1 deletions
  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; };
 };
 };