summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/World.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/World.cpp b/src/World.cpp
index 2fde36259..b8a1dcf35 100644
--- a/src/World.cpp
+++ b/src/World.cpp
@@ -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());