diff options
Diffstat (limited to 'Minecraft.World/XZPacket.h')
| -rw-r--r-- | Minecraft.World/XZPacket.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Minecraft.World/XZPacket.h b/Minecraft.World/XZPacket.h index 0c4115e0..41b6c30d 100644 --- a/Minecraft.World/XZPacket.h +++ b/Minecraft.World/XZPacket.h @@ -25,6 +25,6 @@ public: virtual int getEstimatedSize(); public: - static shared_ptr<Packet> create() { return shared_ptr<Packet>(new XZPacket()); } + static shared_ptr<Packet> create() { return std::make_shared<XZPacket>(); } virtual int getId() { return 166; } };
\ No newline at end of file |
