From 5f2c572f9a68a43a0e9aed98fc08fdeab5a50ddf Mon Sep 17 00:00:00 2001 From: mathiascode Date: Sun, 3 May 2020 01:37:35 +0300 Subject: Set entity world early --- src/World.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'src/World.cpp') diff --git a/src/World.cpp b/src/World.cpp index c0838e1bf..2fde36259 100644 --- a/src/World.cpp +++ b/src/World.cpp @@ -1024,7 +1024,6 @@ void cWorld::Tick(std::chrono::milliseconds a_Dt, std::chrono::milliseconds a_La } for (auto & Entity : EntitiesToAdd) { - Entity->SetWorld(this); auto EntityPtr = Entity.get(); m_ChunkMap->AddEntity(std::move(Entity)); EntityPtr->OnAddToWorld(*this); -- cgit v1.2.3