From d6c1ef7ab97743b24601325f35e67f1ae2568287 Mon Sep 17 00:00:00 2001 From: pieeebot <274605694+pieeebot@users.noreply.github.com> Date: Tue, 12 May 2026 17:35:52 +0300 Subject: [PATCH] fix: crash when switching gamemodes using /gamemode --- Minecraft.World/GameCommandPacket.cpp | 5 ----- Minecraft.World/GameCommandPacket.h | 1 - 2 files changed, 6 deletions(-) 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);