aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/ClientCommandPacket.h
diff options
context:
space:
mode:
Diffstat (limited to 'Minecraft.World/ClientCommandPacket.h')
-rw-r--r--Minecraft.World/ClientCommandPacket.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Minecraft.World/ClientCommandPacket.h b/Minecraft.World/ClientCommandPacket.h
index 2f614ddf..b3578a10 100644
--- a/Minecraft.World/ClientCommandPacket.h
+++ b/Minecraft.World/ClientCommandPacket.h
@@ -19,6 +19,6 @@ public:
int getEstimatedSize();
public:
- static shared_ptr<Packet> create() { return shared_ptr<Packet>(new ClientCommandPacket()); }
+ static shared_ptr<Packet> create() { return std::make_shared<ClientCommandPacket>(); }
virtual int getId() { return 205; }
}; \ No newline at end of file