Przeglądaj źródła

registry: cleanup

Michele Caini 5 lat temu
rodzic
commit
30827120f6
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/entt/entity/registry.hpp

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

@@ -486,7 +486,7 @@ public:
      * @param entity A valid entity identifier.
      * @param entity A valid entity identifier.
      */
      */
     void destroy(const entity_type entity) {
     void destroy(const entity_type entity) {
-        destroy(entity, static_cast<typename traits_type::version_type>(version(entity) + 1u));
+        destroy(entity, version(entity) + 1u);
     }
     }
 
 
     /**
     /**