From 06092aca801ea58a0021731e082a3154548fa9b7 Mon Sep 17 00:00:00 2001 From: Milxnor Date: Sun, 21 May 2023 10:56:23 -0400 Subject: [PATCH] fix cheat crash --- Project Reboot 3.0/commands.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Project Reboot 3.0/commands.h b/Project Reboot 3.0/commands.h index 17909e4..f59089d 100644 --- a/Project Reboot 3.0/commands.h +++ b/Project Reboot 3.0/commands.h @@ -49,6 +49,9 @@ inline void SendMessageToConsole(AFortPlayerController* PlayerController, const void ServerCheatHook(AFortPlayerControllerAthena* PlayerController, FString Msg) { + if (!Msg.Data.Data || Msg.Data.Num() <= 0) + return; + auto PlayerState = Cast(PlayerController->GetPlayerState()); // std::cout << "aa!\n";