Assert if world is incorrect
This commit is contained in:
parent
5f2c572f9a
commit
f5ce03d10d
@ -1025,6 +1025,7 @@ void cWorld::Tick(std::chrono::milliseconds a_Dt, std::chrono::milliseconds a_La
|
||||
for (auto & Entity : EntitiesToAdd)
|
||||
{
|
||||
auto EntityPtr = Entity.get();
|
||||
ASSERT(EntityPtr->GetWorld() == this);
|
||||
m_ChunkMap->AddEntity(std::move(Entity));
|
||||
EntityPtr->OnAddToWorld(*this);
|
||||
ASSERT(!EntityPtr->IsTicking());
|
||||
|
Loading…
Reference in New Issue
Block a user