aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/ContainerSetSlotPacket.h
diff options
context:
space:
mode:
Diffstat (limited to 'Minecraft.World/ContainerSetSlotPacket.h')
-rw-r--r--Minecraft.World/ContainerSetSlotPacket.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Minecraft.World/ContainerSetSlotPacket.h b/Minecraft.World/ContainerSetSlotPacket.h
index 61269df0..86bca334 100644
--- a/Minecraft.World/ContainerSetSlotPacket.h
+++ b/Minecraft.World/ContainerSetSlotPacket.h
@@ -23,7 +23,7 @@ public:
virtual int getEstimatedSize();
public:
- static shared_ptr<Packet> create() { return shared_ptr<Packet>(new ContainerSetSlotPacket()); }
+ static shared_ptr<Packet> create() { return std::make_shared<ContainerSetSlotPacket>(); }
virtual int getId() { return 103; }
};