diff options
Diffstat (limited to 'Minecraft.World/PlayerInfoPacket.h')
| -rw-r--r-- | Minecraft.World/PlayerInfoPacket.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Minecraft.World/PlayerInfoPacket.h b/Minecraft.World/PlayerInfoPacket.h index 85e2ed64..7044ffbd 100644 --- a/Minecraft.World/PlayerInfoPacket.h +++ b/Minecraft.World/PlayerInfoPacket.h @@ -27,6 +27,6 @@ class PlayerInfoPacket : public Packet, public enable_shared_from_this<PlayerInf virtual int getEstimatedSize(); public: - static shared_ptr<Packet> create() { return shared_ptr<Packet>(new PlayerInfoPacket()); } + static shared_ptr<Packet> create() { return std::make_shared<PlayerInfoPacket>(); } virtual int getId() { return 201; } };
\ No newline at end of file |
