From b3fb25206487ee38ddf4ae6e6493c822482cb00a Mon Sep 17 00:00:00 2001 From: iAmir Date: Sat, 23 Sep 2023 03:48:53 +0330 Subject: [PATCH] Revert "Clear components in a separate pass" This causes a crash, let's revert it for now. --- Server/Source/core_impl.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Server/Source/core_impl.hpp b/Server/Source/core_impl.hpp index 69ad2b243..df3a5eb62 100644 --- a/Server/Source/core_impl.hpp +++ b/Server/Source/core_impl.hpp @@ -277,8 +277,8 @@ class ComponentList : public IComponentList pair.second->onFree(it->second); }); it->second->free(); + it = components.erase(it); } - components.clear(); } auto add(IComponent* component)