Sfoglia il codice sorgente

sparse_set: invoke release_sparse_pages before clearing the sparse array

Michele Caini 3 anni fa
parent
commit
dc25c9c1a2
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      src/entt/entity/sparse_set.hpp

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

@@ -294,6 +294,7 @@ protected:
 
     /*! @brief Erases all entities of a sparse set. */
     virtual void clear_all() {
+        release_sparse_pages();
         sparse.clear();
         packed.clear();
         free_list = tombstone;