From 3b72e30c36160c28aa0ecbc5ee158cfd65a69876 Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Thu, 13 Jan 2022 14:44:27 +0100 Subject: [PATCH] sparse_set: use the right iterator in the catch branch of insert --- src/entt/entity/sparse_set.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/entt/entity/sparse_set.hpp b/src/entt/entity/sparse_set.hpp index 0e994830c..c8f1d98f1 100644 --- a/src/entt/entity/sparse_set.hpp +++ b/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;