diff options
Diffstat (limited to 'Minecraft.World/CarrotOnAStickItem.cpp')
| -rw-r--r-- | Minecraft.World/CarrotOnAStickItem.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Minecraft.World/CarrotOnAStickItem.cpp b/Minecraft.World/CarrotOnAStickItem.cpp index 3701fce1..cc39196c 100644 --- a/Minecraft.World/CarrotOnAStickItem.cpp +++ b/Minecraft.World/CarrotOnAStickItem.cpp @@ -35,7 +35,7 @@ shared_ptr<ItemInstance> CarrotOnAStickItem::use(shared_ptr<ItemInstance> itemIn if (itemInstance->count == 0) { - shared_ptr<ItemInstance> replacement = shared_ptr<ItemInstance>(new ItemInstance(Item::fishingRod)); + shared_ptr<ItemInstance> replacement = std::make_shared<ItemInstance>(Item::fishingRod); replacement->setTag(itemInstance->tag); return replacement; } |
