diff --git a/Minecraft.World/GameCommandPacket.cpp b/Minecraft.World/GameCommandPacket.cpp index d7922293..22dac029 100644 --- a/Minecraft.World/GameCommandPacket.cpp +++ b/Minecraft.World/GameCommandPacket.cpp @@ -30,11 +30,6 @@ GameCommandPacket::GameCommandPacket(EGameCommand command, byteArray data) } } -GameCommandPacket::~GameCommandPacket() -{ - delete [] data.data; -} - void GameCommandPacket::read(DataInputStream *dis) { command = static_cast(dis->readInt()); diff --git a/Minecraft.World/GameCommandPacket.h b/Minecraft.World/GameCommandPacket.h index d4827974..5eece717 100644 --- a/Minecraft.World/GameCommandPacket.h +++ b/Minecraft.World/GameCommandPacket.h @@ -13,7 +13,6 @@ public: GameCommandPacket(); GameCommandPacket(EGameCommand command, byteArray data); - ~GameCommandPacket(); virtual void read(DataInputStream *dis); virtual void write(DataOutputStream *dos);