From d966a126248ef653d3cac96ab4ba018dcfb0a938 Mon Sep 17 00:00:00 2001 From: Mat Date: Thu, 9 Apr 2020 23:26:06 +0300 Subject: Don't set entity world twice (#4606) * Don't set entity world twice * Call HookSpawnedEntity when the entity actually spawned --- src/Entities/Entity.cpp | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/Entities/Entity.cpp') diff --git a/src/Entities/Entity.cpp b/src/Entities/Entity.cpp index a4d33db19..453bd03d2 100644 --- a/src/Entities/Entity.cpp +++ b/src/Entities/Entity.cpp @@ -154,9 +154,6 @@ bool cEntity::Initialize(OwnedEntity a_Self, cWorld & a_EntityWorld) ASSERT(m_World == nullptr); ASSERT(GetParentChunk() == nullptr); a_EntityWorld.AddEntity(std::move(a_Self)); - ASSERT(m_World != nullptr); - - cPluginManager::Get()->CallHookSpawnedEntity(a_EntityWorld, *this); return true; } -- cgit v1.2.3