Set entity world early
This commit is contained in:
@@ -154,6 +154,7 @@ bool cEntity::Initialize(OwnedEntity a_Self, cWorld & a_EntityWorld)
|
||||
|
||||
ASSERT(m_World == nullptr);
|
||||
ASSERT(GetParentChunk() == nullptr);
|
||||
SetWorld(&a_EntityWorld);
|
||||
a_EntityWorld.AddEntity(std::move(a_Self));
|
||||
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user