فهرست منبع

sparse_set: use the right iterator in the catch branch of insert

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

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

@@ -282,7 +282,7 @@ protected:
         }
         ENTT_CATCH {
             for(; first != it; ++first) {
-                sparse_ref(*it) = null;
+                sparse_ref(*first) = null;
             }
 
             ENTT_THROW;