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

This commit is contained in:
Michele Caini
2022-01-13 14:44:27 +01:00
parent 9eba103de9
commit 3b72e30c36

View File

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