Index: source/simulation2/system/ComponentManager.cpp =================================================================== --- source/simulation2/system/ComponentManager.cpp +++ source/simulation2/system/ComponentManager.cpp @@ -898,6 +898,8 @@ void CComponentManager::DestroyComponentsSoon(entity_id_t ent) { + if (ent == INVALID_ENTITY) + return; m_DestructionQueue.push_back(ent); }