From d908f22a1714bf89a7a6452339138cbb60d3e1fb Mon Sep 17 00:00:00 2001 From: Ottermandias Date: Mon, 10 Apr 2023 15:06:16 +0200 Subject: [PATCH] Maybe prevent weird GetName crashes. --- Penumbra/Api/IpcTester.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Penumbra/Api/IpcTester.cs b/Penumbra/Api/IpcTester.cs index 467bfa7e..eb9dbe07 100644 --- a/Penumbra/Api/IpcTester.cs +++ b/Penumbra/Api/IpcTester.cs @@ -552,8 +552,8 @@ public class IpcTester : IDisposable private static unsafe string GetObjectName(IntPtr gameObject) { var obj = (FFXIVClientStructs.FFXIV.Client.Game.Object.GameObject*)gameObject; - var name = obj != null ? obj->GetName() : null; - return name != null ? new ByteString(name).ToString() : "Unknown"; + var name = obj != null ? obj->Name : null; + return name != null && *name != 0 ? new ByteString(name).ToString() : "Unknown"; } }