diff options
author | luksor111@gmail.com <luksor111@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-11-24 10:50:38 +0100 |
---|---|---|
committer | luksor111@gmail.com <luksor111@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-11-24 10:50:38 +0100 |
commit | eed6f9bb7bd2553a509a7bba7be32436aa96659b (patch) | |
tree | 65894528e1dc06d872a6bd916538b221874111c3 /source/JukeboxEntity.cpp | |
parent | ByteBuffer: Fixed buffer overrun possibility. (diff) | |
download | cuberite-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.cpp | 2 |
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();
}
}
|