Michele Caini 4 лет назад
Родитель
Сommit
380cb41ca9
2 измененных файлов с 6 добавлено и 6 удалено
  1. 1 1
      src/entt/entity/sparse_set.hpp
  2. 5 5
      src/entt/entity/storage.hpp

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

@@ -755,7 +755,7 @@ public:
 
                 using std::swap;
                 swap(packed[from], packed[to]);
-                
+
                 const auto entity = static_cast<typename entity_traits::entity_type>(to);
                 sparse_ref(packed[to]) = entity_traits::combine(entity, entity_traits::to_integral(packed[to]));
                 *it = entity_traits::combine(static_cast<typename entity_traits::entity_type>(from), entity_traits::reserved);

+ 5 - 5
src/entt/entity/storage.hpp

@@ -855,11 +855,11 @@ public:
     }
 
     /**
-    * @brief Updates the instance assigned to a given entity in-place.
-    * @tparam Func Types of the function objects to invoke.
-    * @param entt A valid identifier.
-    * @param func Valid function objects.
-    */
+     * @brief Updates the instance assigned to a given entity in-place.
+     * @tparam Func Types of the function objects to invoke.
+     * @param entt A valid identifier.
+     * @param func Valid function objects.
+     */
     template<typename... Func>
     void patch([[maybe_unused]] const entity_type entt, Func &&...func) {
         ENTT_ASSERT(base_type::contains(entt), "Storage does not contain entity");