diff options
author | Mat <mail@mathias.is> | 2020-05-03 01:58:53 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@outlook.com> | 2020-05-03 12:49:00 +0200 |
commit | f5ce03d10d883e7c5d6ae9a4ad94227769059d8b (patch) | |
tree | 42f297fa9dfee9fa0db1c8809aa41416d7aede42 /src/World.cpp | |
parent | Set entity world early (diff) | |
download | cuberite-f5ce03d10d883e7c5d6ae9a4ad94227769059d8b.tar cuberite-f5ce03d10d883e7c5d6ae9a4ad94227769059d8b.tar.gz cuberite-f5ce03d10d883e7c5d6ae9a4ad94227769059d8b.tar.bz2 cuberite-f5ce03d10d883e7c5d6ae9a4ad94227769059d8b.tar.lz cuberite-f5ce03d10d883e7c5d6ae9a4ad94227769059d8b.tar.xz cuberite-f5ce03d10d883e7c5d6ae9a4ad94227769059d8b.tar.zst cuberite-f5ce03d10d883e7c5d6ae9a4ad94227769059d8b.zip |
Diffstat (limited to 'src/World.cpp')
-rw-r--r-- | src/World.cpp | 1 |
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()); |