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