summaryrefslogtreecommitdiffstats
path: root/source/items/ItemDye.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--source/items/ItemDye.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/items/ItemDye.h b/source/items/ItemDye.h
index 5cf470e04..2203f410b 100644
--- a/source/items/ItemDye.h
+++ b/source/items/ItemDye.h
@@ -22,7 +22,8 @@ public:
{
if (a_Player->GetGameMode() == eGameMode_Survival)
{
- a_Player->GetInventory().RemoveItem(cItem(a_Item->m_ItemID, 1, a_Item->m_ItemHealth));
+ cItem Item(a_Item->m_ItemID, 1, a_Item->m_ItemHealth);
+ a_Player->GetInventory().RemoveItem(Item);
return true;
}
}