diff --git a/dGame/dComponents/DestroyableComponent.cpp b/dGame/dComponents/DestroyableComponent.cpp index da5db382..72194568 100644 --- a/dGame/dComponents/DestroyableComponent.cpp +++ b/dGame/dComponents/DestroyableComponent.cpp @@ -696,10 +696,10 @@ void DestroyableComponent::Smash(const LWOOBJID source, const eKillType killType if (owner != nullptr) { - auto* team = TeamManager::Instance()->GetTeam(owner->GetObjectID()); - owner = owner->GetOwner(); // If the owner is overwritten, we collect that here + auto* team = TeamManager::Instance()->GetTeam(owner->GetObjectID()); + const auto isEnemy = m_Parent->GetComponent() != nullptr; auto* inventoryComponent = owner->GetComponent();