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