summaryrefslogtreecommitdiffstats
path: root/source/JukeboxEntity.cpp
diff options
context:
space:
mode:
authorluksor111@gmail.com <luksor111@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-11-24 10:50:38 +0100
committerluksor111@gmail.com <luksor111@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-11-24 10:50:38 +0100
commiteed6f9bb7bd2553a509a7bba7be32436aa96659b (patch)
tree65894528e1dc06d872a6bd916538b221874111c3 /source/JukeboxEntity.cpp
parentByteBuffer: Fixed buffer overrun possibility. (diff)
downloadcuberite-eed6f9bb7bd2553a509a7bba7be32436aa96659b.tar
cuberite-eed6f9bb7bd2553a509a7bba7be32436aa96659b.tar.gz
cuberite-eed6f9bb7bd2553a509a7bba7be32436aa96659b.tar.bz2
cuberite-eed6f9bb7bd2553a509a7bba7be32436aa96659b.tar.lz
cuberite-eed6f9bb7bd2553a509a7bba7be32436aa96659b.tar.xz
cuberite-eed6f9bb7bd2553a509a7bba7be32436aa96659b.tar.zst
cuberite-eed6f9bb7bd2553a509a7bba7be32436aa96659b.zip
Diffstat (limited to 'source/JukeboxEntity.cpp')
-rw-r--r--source/JukeboxEntity.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/JukeboxEntity.cpp b/source/JukeboxEntity.cpp
index c190ffa11..3b4c8e1d9 100644
--- a/source/JukeboxEntity.cpp
+++ b/source/JukeboxEntity.cpp
@@ -40,7 +40,7 @@ void cJukeboxEntity::UsedBy( cPlayer * a_Player )
if (HeldItem.m_ItemType >= 2256 && HeldItem.m_ItemType <= 2267)
{
m_Record = HeldItem.m_ItemType;
- a_Player->UseEquippedItem();
+ a_Player->GetInventory().RemoveItem(a_Player->GetInventory().GetEquippedItem());
PlayRecord();
}
}