فهرست منبع

sparse_set: set the free list to tombstone rather than null within ::clear

Michele Caini 4 سال پیش
والد
کامیت
44ae0d67f6
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      src/entt/entity/sparse_set.hpp

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

@@ -910,7 +910,7 @@ public:
             }
             }
         }
         }
 
 
-        free_list = null;
+        free_list = tombstone;
         packed.clear();
         packed.clear();
     }
     }