From 893eb8fabb321df86c661d1f88a3754ac41ecf1c Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Mon, 16 Sep 2024 10:55:51 +0200 Subject: [PATCH] registry: pass *this directly to sparse set bind function --- src/entt/entity/registry.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/entt/entity/registry.hpp b/src/entt/entity/registry.hpp index fa2f8fb2f..31a8542f8 100644 --- a/src/entt/entity/registry.hpp +++ b/src/entt/entity/registry.hpp @@ -262,7 +262,7 @@ class basic_registry { } pools.emplace(id, cpool); - cpool->bind(forward_as_any(*this)); + cpool->bind(*this); return static_cast(*cpool); } else { @@ -290,10 +290,10 @@ class basic_registry { } void rebind() { - entities.bind(forward_as_any(*this)); + entities.bind(*this); for(auto &&curr: pools) { - curr.second->bind(forward_as_any(*this)); + curr.second->bind(*this); } }