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