Przeglądaj źródła

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

Michele Caini 4 lat temu
rodzic
commit
3b72e30c36
1 zmienionych plików z 1 dodań i 1 usunięć
  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;