From 78945304b7db9e8618370a8f3fbdfa16191e5294 Mon Sep 17 00:00:00 2001 From: Kae <80987908+Novaenia@users.noreply.github.com> Date: Sun, 20 Aug 2023 19:07:30 +1000 Subject: [PATCH] Update StarItemDrop.cpp --- source/game/StarItemDrop.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/game/StarItemDrop.cpp b/source/game/StarItemDrop.cpp index 7b64ecc..fa3c984 100644 --- a/source/game/StarItemDrop.cpp +++ b/source/game/StarItemDrop.cpp @@ -263,7 +263,7 @@ void ItemDrop::update(float dt, uint64_t) { } bool ItemDrop::shouldDestroy() const { - return m_mode.get() == Mode::Dead || (m_item->empty() && m_mode.get() != Mode::Taken); + return m_mode.get() == Mode::Dead || (m_item->empty() && m_owningEntity.get() == NullEntityId); } void ItemDrop::render(RenderCallback* renderCallback) {