From f84e8054534972246e223bf20fac25204849dab6 Mon Sep 17 00:00:00 2001 From: Tiger Wang Date: Sat, 29 Aug 2020 21:34:21 +0100 Subject: Entities can fail to add into a chunk - MoveEntityToNewChunk, AddEntity can fail. Ensure we handle these cases correctly --- src/Entities/Entity.cpp | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src/Entities') diff --git a/src/Entities/Entity.cpp b/src/Entities/Entity.cpp index b8d17aaa3..f15a01d04 100644 --- a/src/Entities/Entity.cpp +++ b/src/Entities/Entity.cpp @@ -82,11 +82,6 @@ cEntity::cEntity(eEntityType a_EntityType, Vector3d a_Pos, double a_Width, doubl cEntity::~cEntity() { - - // Before deleting, the entity needs to have been removed from the world, if ever added - ASSERT((m_World == nullptr) || !m_World->HasEntity(m_UniqueID)); - ASSERT(!IsTicking()); - /* // DEBUG: FLOGD("Deleting entity {0} at pos {1:.2f} ~ [{2}, {3}]; ptr {4}", -- cgit v1.2.3