summaryrefslogtreecommitdiffstats
path: root/source/items/ItemDye.h
diff options
context:
space:
mode:
authorlapayo94@gmail.com <lapayo94@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-07-17 16:33:51 +0200
committerlapayo94@gmail.com <lapayo94@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-07-17 16:33:51 +0200
commitaaf772f68a11d1deb7897a0cd09c25cda2fd149d (patch)
treec929cccc33810cf1d953c0ba75d7e31202e03f1e /source/items/ItemDye.h
parentSimple health regeneration system (diff)
downloadcuberite-aaf772f68a11d1deb7897a0cd09c25cda2fd149d.tar
cuberite-aaf772f68a11d1deb7897a0cd09c25cda2fd149d.tar.gz
cuberite-aaf772f68a11d1deb7897a0cd09c25cda2fd149d.tar.bz2
cuberite-aaf772f68a11d1deb7897a0cd09c25cda2fd149d.tar.lz
cuberite-aaf772f68a11d1deb7897a0cd09c25cda2fd149d.tar.xz
cuberite-aaf772f68a11d1deb7897a0cd09c25cda2fd149d.tar.zst
cuberite-aaf772f68a11d1deb7897a0cd09c25cda2fd149d.zip
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;
}
}