Explorar o código

registry: don't pass the allocator to the fake storage

Michele Caini %!s(int64=3) %!d(string=hai) anos
pai
achega
9470133e33
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/entt/entity/registry.hpp

+ 1 - 1
src/entt/entity/registry.hpp

@@ -329,7 +329,7 @@ class basic_registry {
             return static_cast<const storage_for_type<Type> &>(*it->second);
         }
 
-        static storage_for_type<Type> placeholder{get_allocator()};
+        static storage_for_type<Type> placeholder{};
         return placeholder;
     }